Commit 2430ebe9 by resurtm

MSSQL AR tests.

parent 1f9a4685
...@@ -290,13 +290,6 @@ SQL; ...@@ -290,13 +290,6 @@ SQL;
$table->primaryKey = $this->db $table->primaryKey = $this->db
->createCommand($sql, array(':tableName' => $table->name, ':schemaName' => $table->schemaName)) ->createCommand($sql, array(':tableName' => $table->name, ':schemaName' => $table->schemaName))
->queryColumn(); ->queryColumn();
if (count($table->primaryKey) == 0) {
// table does not have primary key
$table->primaryKey = null;
} elseif (count($table->primaryKey) == 1) {
// table has one primary key
$table->primaryKey = $table->primaryKey[0];
}
} }
/** /**
......
<?php
namespace yiiunit\framework\db\mssql;
class MssqlActiveRecordTest extends \yiiunit\framework\db\ActiveRecordTest
{
protected function setUp()
{
$this->driverName = 'sqlsrv';
parent::setUp();
}
}
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