caitalise the sql keywords

This commit is contained in:
Brenda Wallace 2010-05-15 15:31:54 +12:00
parent 191752138a
commit a467c0ebba

View File

@ -169,7 +169,7 @@ class PgsqlSchema extends Schema
} }
if (count($primary) > 0) { // it really should be... if (count($primary) > 0) { // it really should be...
$sql .= ",\n primary key (" . implode(',', $primary) . ")"; $sql .= ",\n PRIMARY KEY (" . implode(',', $primary) . ")";
} }
$sql .= "); "; $sql .= "); ";
@ -180,7 +180,7 @@ class PgsqlSchema extends Schema
} }
foreach ($indices as $i) { 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); $res = $this->conn->query($sql);