Commit bb4f3506 authored by PkSM3's avatar PkSM3

upper case sql

parent d785276e
...@@ -45,7 +45,7 @@ if (count($elems)==1){// un seul mot est sélectionné, on compte les mots multi ...@@ -45,7 +45,7 @@ if (count($elems)==1){// un seul mot est sélectionné, on compte les mots multi
#$querynotparsed=$sql;##### #$querynotparsed=$sql;#####
$sql = substr($sql, 0, -3); $sql = substr($sql, 0, -3);
$sql = str_replace( ' & ', '" OR '.$column.'="', $sql ); $sql = str_replace( ' & ', '" OR '.$column.'="', $sql );
$sql.=')'.$restriction.' $sql.=' COLLATE NOCASE ) '.$restriction.'
GROUP BY '.$id.' GROUP BY '.$id.'
ORDER BY count('.$id.') DESC ORDER BY count('.$id.') DESC
LIMIT 1000'; LIMIT 1000';
...@@ -57,7 +57,7 @@ if (count($elems)==1){// un seul mot est sélectionné, on compte les mots multi ...@@ -57,7 +57,7 @@ if (count($elems)==1){// un seul mot est sélectionné, on compte les mots multi
} }
$sql=substr($sql, 0, -3); $sql=substr($sql, 0, -3);
$sql='SELECT count(*),id,data FROM (SELECT * $sql='SELECT count(*),id,data FROM (SELECT *
FROM '.$table.' where ('.$sql.')'.$restriction.' FROM '.$table.' where ('.$sql.' COLLATE NOCASE )'.$restriction.'
group by id,data) GROUP BY '.$id.' group by id,data) GROUP BY '.$id.'
ORDER BY count('.$id.') DESC ORDER BY count('.$id.') DESC
LIMIT 1000'; LIMIT 1000';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment