bug #3315720 [search] Fix search in non unicode tables
We need to convert field to unicode because the connection is in utf-8 and we might give utf-8 input as well.
This commit is contained in:
@@ -178,7 +178,7 @@ if (isset($_REQUEST['submit_search'])) {
|
||||
$thefieldlikevalue = array();
|
||||
foreach ($tblfields as $tblfield) {
|
||||
if (! isset($field) || strlen($field) == 0 || $tblfield == $field) {
|
||||
$thefieldlikevalue[] = PMA_backquote($tblfield)
|
||||
$thefieldlikevalue[] = 'CONVERT(' . PMA_backquote($tblfield) . ' USING utf8)'
|
||||
. ' ' . $like_or_regex . ' '
|
||||
. "'" . $automatic_wildcard
|
||||
. $search_word
|
||||
|
Reference in New Issue
Block a user