Skip to content

Commit

Permalink
Merge branch '3.0' into 3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-rainville committed Jul 2, 2023
2 parents 20e77e7 + 4608fd7 commit cf2cd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PostgreSQLConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cf2cd37

Please sign in to comment.