mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 11:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1610 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d1428cfccc
commit
57616a3396
4 changed files with 22 additions and 5 deletions
|
|
@ -171,9 +171,13 @@
|
|||
* @brief 1씩 증가되는 sequence값을 return
|
||||
**/
|
||||
function getNextSequence() {
|
||||
$query = sprintf("insert into %ssequence (seq) values ('')", $this->prefix);
|
||||
$query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix);
|
||||
$this->_query($query);
|
||||
return sqlite_last_insert_rowid($this->fd);
|
||||
$sequence = sqlite_last_insert_rowid($this->fd);
|
||||
$query = sprintf("delete from `%ssequence`", $this->prefix);
|
||||
$this->_query($query);
|
||||
|
||||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue