mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 05:09:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1755 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
64b0aa789e
commit
dd18ad335f
25 changed files with 583 additions and 461 deletions
|
|
@ -172,10 +172,10 @@
|
|||
* @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);
|
||||
$sequence = sqlite_last_insert_rowid($this->fd);
|
||||
$query = sprintf("delete from `%ssequence`", $this->prefix);
|
||||
$query = sprintf("delete from %ssequence where seq < %d", $this->prefix, $sequence);
|
||||
$this->_query($query);
|
||||
|
||||
return $sequence;
|
||||
|
|
@ -361,7 +361,7 @@
|
|||
if($output->column_type[$name]!='number') $value = "'".$this->addQuotes($value)."'";
|
||||
elseif(!$value || is_numeric($value)) $value = (int)$value;
|
||||
|
||||
$column_list[] = sprintf("`%s` = %s", $name, $value);
|
||||
$column_list[] = sprintf("%s = %s", $name, $value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue