Correctly identifier quote column names before adding them to queries.

Closes #2248
This commit is contained in:
mark_story 2013-10-31 19:53:42 -04:00
parent 927a4933d1
commit 9e4ac31dc3

View file

@ -325,6 +325,7 @@ class Postgres extends DboSource {
$fullTable = $this->fullTableName($table);
$sequence = $this->value($this->getSequence($tableName, $column));
$column = $this->name($column);
$this->execute("SELECT setval($sequence, (SELECT MAX($column) FROM $fullTable))");
return true;
}