diff --git a/core/database_pdo.php b/core/database_pdo.php index a9a0f2e..036f39e 100644 --- a/core/database_pdo.php +++ b/core/database_pdo.php @@ -131,10 +131,10 @@ class IdGenerator { } function getId($seq) { -// $result = $this->db->fetchOneArray("SELECT nextval('$seq')"); -// return $result['nextval']; - $result = $this->db->fetchOneArray("SELECT last_insert_rowid() AS nextval"); - return $result['nextval']; + $result = $this->db->fetchOneArray("SELECT nextval('$seq')"); + return $result['nextval']; +// $result = $this->db->fetchOneArray("SELECT last_insert_rowid() AS nextval"); +// return $result['nextval']; } }