get id nextval

This commit is contained in:
Фёдор Подлеснов 2016-07-14 16:37:14 +03:00
parent df2e65a670
commit 712d20d9cf

View file

@ -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'];
}
}