We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20e77e7 + 4608fd7 commit cf2cd37Copy full SHA for cf2cd37
code/PostgreSQLConnector.php
@@ -113,7 +113,7 @@ public function affectedRows()
113
114
public function getGeneratedID($table)
115
{
116
- return $this->query("SELECT currval('\"{$table}_ID_seq\"')")->value();
+ return $this->query("SELECT currval(pg_get_serial_sequence('\"{$table}\"','ID'))")->value();
117
}
118
119
public function getLastError()
0 commit comments