Skip to content

Commit

Permalink
完善 column distinct 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX authored and liu21st committed Feb 26, 2021
1 parent 8e84655 commit 58d5c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/orm/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testColumn()
$this->assertEquals(array_column($users, 'username'), $result);

// 获取某字段唯一
$result = Db::table('test_user')->distinct(true)->column('type');
$result = Db::table('test_user')->column('DISTINCT type');
$expected = array_unique(array_column($users, 'type'));
$this->assertEquals($expected, $result);

Expand Down

0 comments on commit 58d5c5d

Please sign in to comment.