Skip to content

Commit 4b90bf2

Browse files
authored
fix(db): Make sql statement compatible to Microsoft SQL Server (#680)
... while not breaking others ...
1 parent 6a66ac7 commit 4b90bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/responsetype/rank.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ public function get_other_choice(string $rsql, array $params): array {
317317
WHERE c.question_id = ?
318318
AND c.content = '!other'
319319
AND ro.response <> ''
320-
GROUP BY ro.response, cid
321-
ORDER BY cid";
320+
GROUP BY ro.response, c.id
321+
ORDER BY c.id";
322322
return $DB->get_records_sql($osql, array_merge($params, [$this->question->id]));
323323
}
324324

0 commit comments

Comments
 (0)