Commit 72599b7b authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #402 from deeky666/fix-write-test-last-insert-id

Fix WriteTest for platforms supporting both sequences and identity columns
parents 38aad74f 1bfef125
......@@ -175,8 +175,8 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
public function testLastInsertIdNoSequenceGiven()
{
if ( ! $this->_conn->getDatabasePlatform()->supportsSequences()) {
$this->markTestSkipped('Test only works on platforms with sequences.');
if ( ! $this->_conn->getDatabasePlatform()->supportsSequences() || $this->_conn->getDatabasePlatform()->supportsIdentityColumns()) {
$this->markTestSkipped("Test only works consistently on platforms that support sequences and don't support identity columns.");
}
$this->assertFalse($this->_conn->lastInsertId( null ));
......
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