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 2aadb91 + 7de82cc commit 4608fd7Copy full SHA for 4608fd7
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