Commit 6ee182e5 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-195] Fix...

[DBAL-195] Fix AbstractSchemaManagertests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.phpdropAndCreateSequence
parent fed42a86
...@@ -473,8 +473,8 @@ abstract class AbstractSchemaManager ...@@ -473,8 +473,8 @@ abstract class AbstractSchemaManager
*/ */
public function dropAndCreateSequence(Sequence $sequence) public function dropAndCreateSequence(Sequence $sequence)
{ {
$this->tryMethod('createSequence', $seqName, $start, $allocationSize); $this->tryMethod('dropSequence', $sequence->getQuotedName($this->_platform));
$this->createSequence($seqName, $start, $allocationSize); $this->createSequence($sequence);
} }
/** /**
......
...@@ -31,6 +31,19 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest ...@@ -31,6 +31,19 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this->_sm = $this->_conn->getSchemaManager(); $this->_sm = $this->_conn->getSchemaManager();
} }
/**
* @group DBAL-195
*/
public function testDropAndCreateSequence()
{
if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
$this->markTestSkipped($this->_conn->getDriver()->getName().' does not support sequences.');
}
$sequence = new \Doctrine\DBAL\Schema\Sequence('dropcreate_sequences_test_seq', 20, 10);
$this->_sm->dropAndCreateSequence($sequence);
}
public function testListSequences() public function testListSequences()
{ {
if(!$this->_conn->getDatabasePlatform()->supportsSequences()) { if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
......
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