mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
PostgreSQL: Fix condition for selecting no rows
This commit is contained in:
@@ -550,7 +550,7 @@ class Adminer {
|
||||
$cols[] = $prefix . ($jush == "sql" && $is_text && !preg_match("~^utf8~", $field["collation"]) ? "CONVERT($name USING " . charset($connection) . ")" : $name) . $cond;
|
||||
}
|
||||
}
|
||||
$return[] = ($cols ? "(" . implode(" OR ", $cols) . ")" : "0");
|
||||
$return[] = ($cols ? "(" . implode(" OR ", $cols) . ")" : "1 = 0");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user