Skip to content

Commit 55764e2

Browse files
committed
fix HAVING tests
1 parent 13a46d3 commit 55764e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/SphinxQL/SphinxQLTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,10 @@ public function testHaving()
648648
$this->assertCount(2, $result);
649649
$this->assertEquals('2', $result[1]['cnt']);
650650

651-
$result = SphinxQL::create(self::$conn)->select(SphinxQL::expr('count(*) as cnt'))
651+
$result = SphinxQL::create(self::$conn)->select(SphinxQL::expr('count(*) as cnt'), SphinxQL::expr('GROUPBY() gd'))
652652
->from('rt')
653653
->groupBy('gid')
654-
->having('gid', 304)
654+
->having('gd', 304)
655655
->execute();
656656

657657
$this->assertCount(1, $result);

0 commit comments

Comments
 (0)