Commit ec39adcd authored by zYne's avatar zYne

--no commit message

--no commit message
parent 378ed91a
...@@ -48,7 +48,7 @@ class Doctrine_Sequence_Mssql extends Doctrine_Sequence ...@@ -48,7 +48,7 @@ class Doctrine_Sequence_Mssql extends Doctrine_Sequence
if ($this->checkSequence($sequenceName)) { if ($this->checkSequence($sequenceName)) {
$query = 'SET IDENTITY_INSERT ' . $sequenceName . ' OFF ' $query = 'SET IDENTITY_INSERT ' . $sequenceName . ' OFF '
. 'INSERT INTO ' . $sequenceName . 'DEFAULT VALUES'; . 'INSERT INTO ' . $sequenceName . ' DEFAULT VALUES';
} else { } else {
$query = 'INSERT INTO ' . $sequenceName . ' (' . $seqcolName . ') VALUES (0)'; $query = 'INSERT INTO ' . $sequenceName . ' (' . $seqcolName . ') VALUES (0)';
} }
......
...@@ -40,7 +40,7 @@ class Doctrine_Sequence_Mssql_TestCase extends Doctrine_UnitTestCase ...@@ -40,7 +40,7 @@ class Doctrine_Sequence_Mssql_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($this->adapter->pop(), 'SELECT @@IDENTITY'); $this->assertEqual($this->adapter->pop(), 'SELECT @@IDENTITY');
$this->assertEqual($this->adapter->pop(), 'SELECT @@VERSION'); $this->assertEqual($this->adapter->pop(), 'SELECT @@VERSION');
$this->assertEqual($this->adapter->pop(), 'SET IDENTITY_INSERT user_seq ON INSERT INTO user_seq (id) VALUES (0)'); $this->assertEqual($this->adapter->pop(), 'SET IDENTITY_INSERT user_seq ON INSERT INTO user_seq (id) DEFAULT VALUES');
$this->assertEqual($this->adapter->pop(), 'SELECT COUNT(1) FROM user_seq'); $this->assertEqual($this->adapter->pop(), 'SELECT COUNT(1) FROM user_seq');
} }
public function testNextIdExecutesSql() public function testNextIdExecutesSql()
...@@ -51,7 +51,7 @@ class Doctrine_Sequence_Mssql_TestCase extends Doctrine_UnitTestCase ...@@ -51,7 +51,7 @@ class Doctrine_Sequence_Mssql_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($this->adapter->pop(), 'SELECT @@IDENTITY'); $this->assertEqual($this->adapter->pop(), 'SELECT @@IDENTITY');
$this->assertEqual($this->adapter->pop(), 'SELECT @@VERSION'); $this->assertEqual($this->adapter->pop(), 'SELECT @@VERSION');
$this->assertEqual($this->adapter->pop(), 'SET IDENTITY_INSERT user_seq ON INSERT INTO user_seq (id) VALUES (0)'); $this->assertEqual($this->adapter->pop(), 'SET IDENTITY_INSERT user_seq ON INSERT INTO user_seq (id) DEFAULT VALUES');
$this->assertEqual($this->adapter->pop(), 'SELECT COUNT(1) FROM user_seq'); $this->assertEqual($this->adapter->pop(), 'SELECT COUNT(1) FROM user_seq');
} }
public function testLastInsertIdCallsPdoLevelEquivalent() public function testLastInsertIdCallsPdoLevelEquivalent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment