mirror of
https://github.com/vrana/adminer.git
synced 2025-08-05 14:17:26 +02:00
PostgreSQL: Unuse deleted fetch_field
This commit is contained in:
@@ -758,7 +758,8 @@ ORDER BY SPECIFIC_NAME');
|
||||
}
|
||||
|
||||
function last_id($result) {
|
||||
return (is_object($result) && $result->num_rows ? $result->fetch_column(0) : 0);
|
||||
$row = (is_object($result) ? $result->fetch_row() : array());
|
||||
return ($row ? $row[0] : 0);
|
||||
}
|
||||
|
||||
function explain($connection, $query) {
|
||||
|
@@ -77,7 +77,7 @@ function put_file($match) {
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($functions["__construct"], $functions["__destruct"], $functions["set_charset"], $functions["fetch_column"]);
|
||||
unset($functions["__construct"], $functions["__destruct"], $functions["set_charset"]);
|
||||
foreach ($functions as $val) {
|
||||
if (!strpos($return, "$val(")) {
|
||||
fprintf(STDERR, "Missing $val in $vendor\n");
|
||||
|
Reference in New Issue
Block a user