Need to supply the sequence name and noth the schema name
authorJoey Schulze <joey@infodrom.org>
Sun, 22 Dec 2013 12:18:20 +0000 (13:18 +0100)
committerJoey Schulze <joey@infodrom.org>
Sun, 22 Dec 2013 12:18:20 +0000 (13:18 +0100)
class/database.class.php

index 084c062..47be12d 100644 (file)
@@ -83,7 +83,7 @@ class Database {
   public function lastInsertId()
   {
     if (DBDRIVER == 'pgsql')
-      return $this->db->lastInsertId($this->lastInsertTable);
+      return $this->db->lastInsertId($this->lastInsertTable.'_id_seq');
     else
       return $this->db->lastInsertId();
   }