diff --git a/code/PostgreSQLConnector.php b/code/PostgreSQLConnector.php index 2ccfa19..8fa064b 100644 --- a/code/PostgreSQLConnector.php +++ b/code/PostgreSQLConnector.php @@ -113,7 +113,7 @@ public function affectedRows() public function getGeneratedID($table) { - return $this->query("SELECT currval('\"{$table}_ID_seq\"')")->value(); + return $this->query("SELECT currval(pg_get_serial_sequence('\"{$table}\"','ID'))")->value(); } public function getLastError()