mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
#91 mysql/sqlite의 getNextSequence()에 대해 10000개 단위로 삭제하도록하고 mysql에서 0이라는 값을 입력하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2364 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c35d05b4e3
commit
0c749854f4
4 changed files with 19 additions and 11 deletions
|
|
@ -175,8 +175,10 @@
|
|||
$query = sprintf("insert into %ssequence (seq) values ('')", $this->prefix);
|
||||
$this->_query($query);
|
||||
$sequence = sqlite_last_insert_rowid($this->fd);
|
||||
$query = sprintf("delete from %ssequence where seq < %d", $this->prefix, $sequence);
|
||||
$this->_query($query);
|
||||
if($seqnece % 10000 == 0) {
|
||||
$query = sprintf("delete from %ssequence where seq < %d", $this->prefix, $sequence);
|
||||
$this->_query($query);
|
||||
}
|
||||
|
||||
return $sequence;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue