mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +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
|
|
@ -173,7 +173,11 @@
|
|||
function getNextSequence() {
|
||||
$query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix);
|
||||
$this->_query($query);
|
||||
return mysql_insert_id();
|
||||
$sequence = mysql_insert_id();
|
||||
$query = sprintf("delete from `%ssequence`", $this->prefix);
|
||||
$this->_query($query);
|
||||
|
||||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -182,7 +182,11 @@
|
|||
function getNextSequence() {
|
||||
$query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix);
|
||||
$this->_query($query);
|
||||
return mysql_insert_id();
|
||||
$sequence = mysql_insert_id();
|
||||
$query = sprintf("delete from `%ssequence`", $this->prefix);
|
||||
$this->_query($query);
|
||||
|
||||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -195,7 +195,12 @@
|
|||
$query = sprintf("insert into %ssequence (seq) values (NULL)", $this->prefix);
|
||||
$this->_prepare($query);
|
||||
$result = $this->_execute();
|
||||
return $this->handler->lastInsertId();
|
||||
$sequence = $this->handler->lastInsertId();
|
||||
$query = sprintf("delete from `%ssequence`", $this->prefix);
|
||||
$this->_prepare($query);
|
||||
$result = $this->_execute();
|
||||
|
||||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue