mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Merge branch 'master' of github.com:yiisoft/yii2 into mssql
This commit is contained in:
@@ -140,7 +140,7 @@ class CommandTest extends \yiiunit\DatabaseTestCase
|
||||
$db = $this->getConnection();
|
||||
|
||||
// bindParam
|
||||
$sql = 'INSERT INTO tbl_customer(email,name,address) VALUES (:email, :name, :address)';
|
||||
$sql = 'INSERT INTO tbl_customer(email, name, address) VALUES (:email, :name, :address)';
|
||||
$command = $db->createCommand($sql);
|
||||
$email = 'user4@example.com';
|
||||
$name = 'user4';
|
||||
|
||||
@@ -20,7 +20,7 @@ class QueryTest extends \yiiunit\DatabaseTestCase
|
||||
|
||||
$query = new Query;
|
||||
$query->select('id, name', 'something')->distinct(true);
|
||||
$this->assertEquals(array('id','name'), $query->select);
|
||||
$this->assertEquals(array('id', 'name'), $query->select);
|
||||
$this->assertTrue($query->distinct);
|
||||
$this->assertEquals('something', $query->selectOption);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user