Commit 5c65055c authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-195] Fix...

[DBAL-195] Fix AbstractSchemaManagertests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.phpdropAndCreateSequence
parent 15bcd83a
......@@ -476,8 +476,8 @@ abstract class AbstractSchemaManager
*/
public function dropAndCreateSequence(Sequence $sequence)
{
$this->tryMethod('createSequence', $seqName, $start, $allocationSize);
$this->createSequence($seqName, $start, $allocationSize);
$this->tryMethod('dropSequence', $sequence->getQuotedName($this->_platform));
$this->createSequence($sequence);
}
/**
......@@ -840,4 +840,4 @@ abstract class AbstractSchemaManager
{
return str_replace('(DC2Type:'.$type.')', '', $comment);
}
}
\ No newline at end of file
}
......@@ -33,6 +33,19 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$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()
{
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