Commit 2b025434 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Wrap create table into transaction

parent 65d1ab6a
......@@ -46,7 +46,9 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
$table->addColumn("id", "integer");
$table->setPrimaryKey(array('id'));
$this->_conn->beginTransaction();
$this->_conn->getSchemaManager()->createTable($table);
$this->_conn->commit();
$table = $this->_conn->getSchemaManager()->listTableDetails($table->getName());
$this->assertEquals("nontemporary", $table->getName());
......
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