diff --git a/common/framework/db.php b/common/framework/db.php index 20915fb9f..79759080d 100644 --- a/common/framework/db.php +++ b/common/framework/db.php @@ -678,7 +678,7 @@ class DB */ public function getNextSequence() { - $this->_handle->exec(sprintf('INSERT INTO `%s` (seq) VALUES (0)', $this->addQuotes($this->_prefix . 'sequence'))); + $this->_handle->exec(sprintf('INSERT INTO `%s` (seq) VALUES (NULL)', $this->addQuotes($this->_prefix . 'sequence'))); $sequence = $this->getInsertID(); if ($this->isError()) {