mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-09-29 20:59:01 +02:00
Compare commits
No commits in common. "4608fd7609d508bdeff4a19b784682b3d42bb59f" and "2aadb9194bb0673e780fd2cae1604c382630358a" have entirely different histories.
4608fd7609
...
2aadb9194b
@ -113,7 +113,7 @@ class PostgreSQLConnector extends DBConnector
|
||||
|
||||
public function getGeneratedID($table)
|
||||
{
|
||||
return $this->query("SELECT currval(pg_get_serial_sequence('\"{$table}\"','ID'))")->value();
|
||||
return $this->query("SELECT currval('\"{$table}_ID_seq\"')")->value();
|
||||
}
|
||||
|
||||
public function getLastError()
|
||||
|
Loading…
Reference in New Issue
Block a user