Skip to content
Snippets Groups Projects
Commit bda98759 authored by Didier 'OdyX' Raboud's avatar Didier 'OdyX' Raboud Committed by Friederike Schwager
Browse files

Fix SQL values' quoting, to fix module backup under PostgreSQL

parent caa79540
Branches
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