1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Added support for ILIKE in pgsql.

This commit is contained in:
beerwine
2015-01-19 09:38:10 +01:00
committed by Jakub Vrana
parent 060c006875
commit 411d198d0d
2 changed files with 3 additions and 1 deletions

View File

@@ -429,6 +429,8 @@ username.form['auth[driver]'].onchange();
$cond = " $val[val]"; // SQL injection
} elseif ($val["op"] == "LIKE %%") {
$cond = " LIKE " . $this->processInput($fields[$val["col"]], "%$val[val]%");
} elseif ($val["op"] == "ILIKE %%") {
$cond = " ILIKE " . $this->processInput($fields[$val["col"]], "%$val[val]%");
} elseif (!preg_match('~NULL$~', $val["op"])) {
$cond .= " " . $this->processInput($fields[$val["col"]], $val["val"]);
}