Skip to content
Snippets Groups Projects
Unverified Commit c1c3c45b authored by Friederike's avatar Friederike Committed by GitHub
Browse files

Merge pull request #50 from liip-elearning/fix-psql-backup

Fix SQL values' quoting, to fix module backup under PostgreSQL
parents e673b971 bef3712d
Branches master
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ class backup_pdfannotator_activity_structure_step extends backup_activity_struct ...@@ -97,7 +97,7 @@ class backup_pdfannotator_activity_structure_step extends backup_activity_struct
// Add all annotations specific to this annotator instance. // Add all annotations specific to this annotator instance.
$annotation->set_source_sql('SELECT a.* FROM {pdfannotator_annotations} a ' $annotation->set_source_sql('SELECT a.* FROM {pdfannotator_annotations} a '
. 'JOIN {pdfannotator_comments} c ON a.id = c.annotationid ' . 'JOIN {pdfannotator_comments} c ON a.id = c.annotationid '
. 'WHERE a.pdfannotatorid = ? AND c.isquestion = "1" AND (c.visibility = "public" OR c.visibility = "anonymous") ', . "WHERE a.pdfannotatorid = ? AND c.isquestion = 1 AND (c.visibility = 'public' OR c.visibility = 'anonymous') ",
array('pdfannotatorid' => backup::VAR_PARENTID)); array('pdfannotatorid' => backup::VAR_PARENTID));
// Add any subscriptions to this annotation. // Add any subscriptions to this annotation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment