summaryrefslogtreecommitdiff
path: root/includes/database/pgsql/query.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database/pgsql/query.inc')
-rw-r--r--includes/database/pgsql/query.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/database/pgsql/query.inc b/includes/database/pgsql/query.inc
index c475a0011..f3783a9ca 100644
--- a/includes/database/pgsql/query.inc
+++ b/includes/database/pgsql/query.inc
@@ -1,5 +1,4 @@
<?php
-// $Id$
/**
* @ingroup database
@@ -104,8 +103,8 @@ class InsertQuery_pgsql extends InsertQuery {
}
public function __toString() {
- // Create a comments string to prepend to the query.
- $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
+ // Create a sanitized comment string to prepend to the query.
+ $comments = $this->connection->makeComment($this->comments);
// Default fields are always placed first for consistency.
$insert_fields = array_merge($this->defaultFields, $this->insertFields);