1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

PostgreSQL: Fix parsing of foreign keys with non-ASCII column names (thanks to Tomas Pecina)

This commit is contained in:
Jakub Vrana
2021-05-14 06:21:09 +02:00
parent a12d31c5a8
commit 60ad161178
4 changed files with 11 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
}
$return = array();
foreach ($row as $key => $val) {
$return[($key[0] == '"' ? idf_unescape($key) : $key)] = $val;
$return[idf_unescape($key)] = $val;
}
return $return;
}
@@ -676,7 +676,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
return array(
"Timing" => strtoupper($match[1]),
"Event" => strtoupper($match[2]) . ($of ? " OF" : ""),
"Of" => ($of[0] == '`' || $of[0] == '"' ? idf_unescape($of) : $of),
"Of" => idf_unescape($of),
"Trigger" => $name,
"Statement" => $match[4],
);