mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +02:00
Ignore bit type when searching strings
This commit is contained in:
@@ -395,7 +395,7 @@ username.form['auth[driver]'].onchange();
|
|||||||
// find anywhere
|
// find anywhere
|
||||||
$cols = array();
|
$cols = array();
|
||||||
foreach ($fields as $name => $field) {
|
foreach ($fields as $name => $field) {
|
||||||
if (is_numeric($val["val"]) || !ereg('int|float|double|decimal', $field["type"])) {
|
if (is_numeric($val["val"]) || !ereg('int|float|double|decimal|bit', $field["type"])) {
|
||||||
$name = idf_escape($name);
|
$name = idf_escape($name);
|
||||||
$cols[] = ($jush == "sql" && ereg('char|text|enum|set', $field["type"]) && !ereg('^utf8', $field["collation"]) ? "CONVERT($name USING utf8)" : $name);
|
$cols[] = ($jush == "sql" && ereg('char|text|enum|set', $field["type"]) && !ereg('^utf8', $field["collation"]) ? "CONVERT($name USING utf8)" : $name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user