Commit 7a956794 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-216] Fix test for SQLSrv

parent a90aacd3
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
public function setUp() public function setUp()
...@@ -15,9 +13,10 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -15,9 +13,10 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
try { try {
/* @var $sm \Doctrine\DBAL\Schema\AbstractSchemaManager */ /* @var $sm \Doctrine\DBAL\Schema\AbstractSchemaManager */
$table = new \Doctrine\DBAL\Schema\Table("write_table"); $table = new \Doctrine\DBAL\Schema\Table("write_table");
$table->addColumn('test_int', 'integer', array('autoincrement' => true)); $table->addColumn('id', 'integer', array('autoincrement' => true));
$table->addColumn('test_int', 'integer');
$table->addColumn('test_string', 'string', array('notnull' => false)); $table->addColumn('test_string', 'string', array('notnull' => false));
$table->setPrimaryKey(array('test_int')); $table->setPrimaryKey(array('id'));
foreach ($this->_conn->getDatabasePlatform()->getCreateTableSQL($table) AS $sql) { foreach ($this->_conn->getDatabasePlatform()->getCreateTableSQL($table) AS $sql) {
$this->_conn->executeQuery($sql); $this->_conn->executeQuery($sql);
......
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