mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Reset error before using in SQL query
This commit is contained in:
@@ -58,6 +58,7 @@ if (isset($_GET["pgsql"])) {
|
||||
|
||||
function query($query, $unbuffered = false) {
|
||||
$result = @pg_query($this->_link, $query);
|
||||
$this->error = "";
|
||||
if (!$result) {
|
||||
$this->error = pg_last_error($this->_link);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user