Skip to content

Commit 1a03c6f

Browse files
authored
Force 'N' in 'GROUP N BY' to be numeric
1 parent 1ab86cf commit 1a03c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SphinxQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ public function groupBy($column)
10201020
*/
10211021
public function groupNBy($n)
10221022
{
1023-
$this->group_n_by = $n;
1023+
$this->group_n_by = (int) $n;
10241024

10251025
return $this;
10261026
}

0 commit comments

Comments
 (0)