MS SQL: Add support for PDO_SQLSRV extension
MS SQL: Link help from sys tables
MongoDB: Remove support for deprecated extension mongo
+Elasticsearch: Fix text search on boolean fields
Adminer 4.17.1 (released 2025-02-25):
MySQL: Fix typo in the date type (regression from 4.17.0)
}
}
+ $fields = null;
foreach ($where as $val) {
if (preg_match('~^\((.+ OR .+)\)$~', $val, $matches)) {
$parts = explode(" OR ", $matches[1]);
$terms = array();
+
+ if ($fields === null) {
+ $fields = fields($table);
+ }
foreach ($parts as $part) {
list($col, $op, $val) = explode(" ", $part, 3);
$term = array($col => $val);
+ if (isset($fields[$col]) && $fields[$col]['full_type'] == 'boolean'
+ && $val !== 'true' && $val !== 'false'
+ ) {
+ continue;
+ }
if ($op == "=") {
$terms[] = array("term" => $term);
} elseif (in_array($op, array("must", "should", "must_not"))) {