Fixing another group by postgres error. You can't put fields into the select that aren't in the group by unless they're functions like max

This commit is contained in:
mjollnir_
2005-08-09 04:50:02 +00:00
parent 494538afb3
commit 4eb27d4a74
+1 -1
View File
@@ -241,7 +241,7 @@ function ewiki_database_moodle($action, &$args, $sw1, $sw2) {
(EWIKI_DBQUERY_BUFFER && ($field!="pagename") ? ", $field" : "") .
" FROM " . $CFG->prefix.EWIKI_DB_TABLE_NAME .
" WHERE $field ILIKE '%".$content."%' and wiki=".$wiki_entry->id .
" GROUP BY id, version, flags ".
" GROUP BY id, pagename, version, flags ".
(EWIKI_DBQUERY_BUFFER && ($field!="pagename") ? ", $field" : "") ;
break;
default: