summaryrefslogtreecommitdiff
path: root/includes/database/pgsql/query.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-20 20:02:31 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-20 20:02:31 +0000
commitf09028107ca18a8f897ff517d2ed04688e1c567d (patch)
tree1f6cff867077daac6dbdd9a78967679cadef1b8c /includes/database/pgsql/query.inc
parent10931908b5885741be806ff15586770691801e51 (diff)
downloadbrdo-f09028107ca18a8f897ff517d2ed04688e1c567d.tar.gz
brdo-f09028107ca18a8f897ff517d2ed04688e1c567d.tar.bz2
- Patch #413732 by brianV: database code clean-up.
Diffstat (limited to 'includes/database/pgsql/query.inc')
-rw-r--r--includes/database/pgsql/query.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/database/pgsql/query.inc b/includes/database/pgsql/query.inc
index a0f97b1b4..f3a4932ea 100644
--- a/includes/database/pgsql/query.inc
+++ b/includes/database/pgsql/query.inc
@@ -6,6 +6,12 @@
* @{
*/
+/**
+ * @file
+ * Query code for PostgreSQL embedded database engine.
+ */
+
+
class InsertQuery_pgsql extends InsertQuery {
public function __construct($connection, $table, array $options = array()) {
@@ -51,7 +57,7 @@ class InsertQuery_pgsql extends InsertQuery {
++$blob_count;
}
else {
- $stmt->bindParam(':db_insert_placeholder_'. $max_placeholder++, $insert_values[$idx]);
+ $stmt->bindParam(':db_insert_placeholder_' . $max_placeholder++, $insert_values[$idx]);
}
}
}
@@ -101,7 +107,7 @@ class InsertQuery_pgsql extends InsertQuery {
else {
// If there are no values, then this is a default-only query. We still need to handle that.
$placeholders = array_fill(0, count($this->defaultFields), 'default');
- $values[] = '(' . implode(', ', $placeholders) .')';
+ $values[] = '(' . implode(', ', $placeholders) . ')';
}
$query .= implode(', ', $values);