From 4106348287e42d32cd260d1bc4f251a7d48d4eee Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 15 Jan 2007 19:02:00 +0000 Subject: [PATCH] Fixed mysql sequence driver --- lib/Doctrine/Export/Mysql.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Export/Mysql.php b/lib/Doctrine/Export/Mysql.php index 7e60f8ef3..17cd8aa1b 100644 --- a/lib/Doctrine/Export/Mysql.php +++ b/lib/Doctrine/Export/Mysql.php @@ -320,8 +320,11 @@ class Doctrine_Export_Mysql extends Doctrine_Export * @param string $start start value of the sequence; default is 1 * @return boolean */ - public function createSequence($sequenceName, $seqcolName, $start = 1) + public function createSequence($sequenceName, $start = 1) { + $sequenceName = $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName), true); + $seqcolName = $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME), true); + $query = 'CREATE TABLE ' . $sequenceName . ' (' . $seqcolName . ' INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (' . $seqcolName . '))'