get id nextval
This commit is contained in:
parent
df2e65a670
commit
712d20d9cf
1 changed files with 4 additions and 4 deletions
|
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue