git-svn-id: http://xe-core.googlecode.com/svn/trunk@1610 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-12 07:15:46 +00:00
parent d1428cfccc
commit 57616a3396
4 changed files with 22 additions and 5 deletions

View file

@ -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;
}
/**