1
0
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:
Jakub Vrana
2018-02-06 12:43:10 +01:00
parent 2d7bda4d1e
commit c34ada5368
3 changed files with 3 additions and 2 deletions

View File

@@ -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");
}
}
}