From a467c0ebbab22a220972e458de0652e523bc12d7 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 15 May 2010 15:31:54 +1200 Subject: [PATCH] caitalise the sql keywords --- lib/pgsqlschema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pgsqlschema.php b/lib/pgsqlschema.php index 24b847a986..16639ff1b0 100644 --- a/lib/pgsqlschema.php +++ b/lib/pgsqlschema.php @@ -169,7 +169,7 @@ class PgsqlSchema extends Schema } if (count($primary) > 0) { // it really should be... - $sql .= ",\n primary key (" . implode(',', $primary) . ")"; + $sql .= ",\n PRIMARY KEY (" . implode(',', $primary) . ")"; } $sql .= "); "; @@ -180,7 +180,7 @@ class PgsqlSchema extends Schema } foreach ($indices as $i) { - $sql .= "CREATE index {$name}_{$i}_idx on {$name} ($i)"; + $sql .= "CREATE index {$name}_{$i}_idx ON {$name} ($i)"; } $res = $this->conn->query($sql); -- 2.39.5