Commit ec2be901 authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #391 from deeky666/fix-temptable-test

Fix reserved keyword conflicts in TemporaryTableTest
parents a619261b cc3a6ed7
......@@ -22,7 +22,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
if ($this->_conn) {
try {
$tempTable = $this->_conn->getDatabasePlatform()->getTemporaryTableName("temporary");
$tempTable = $this->_conn->getDatabasePlatform()->getTemporaryTableName("my_temporary");
$this->_conn->exec($this->_conn->getDatabasePlatform()->getDropTemporaryTableSQL($tempTable));
} catch(\Exception $e) { }
}
......@@ -36,7 +36,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
$platform = $this->_conn->getDatabasePlatform();
$columnDefinitions = array("id" => array("type" => Type::getType("integer"), "notnull" => true));
$tempTable = $platform->getTemporaryTableName("temporary");
$tempTable = $platform->getTemporaryTableName("my_temporary");
$createTempTableSQL = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
. $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
......@@ -69,7 +69,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
$platform = $this->_conn->getDatabasePlatform();
$columnDefinitions = array("id" => array("type" => Type::getType("integer"), "notnull" => true));
$tempTable = $platform->getTemporaryTableName("temporary");
$tempTable = $platform->getTemporaryTableName("my_temporary");
$createTempTableSQL = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
. $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
......
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