mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
commit
d8acf531cb
1 changed files with 2 additions and 1 deletions
|
@ -325,7 +325,8 @@ class Postgres extends DboSource {
|
|||
$fullTable = $this->fullTableName($table);
|
||||
|
||||
$sequence = $this->value($this->getSequence($tableName, $column));
|
||||
$this->execute("SELECT setval($sequence, (SELECT MAX(id) FROM $fullTable))");
|
||||
$column = $this->name($column);
|
||||
$this->execute("SELECT setval($sequence, (SELECT MAX($column) FROM $fullTable))");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue