1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

PostgreSQL: Allow editing views with uppercase letters (bug #467)

This commit is contained in:
Jakub Vrana
2018-01-30 16:03:13 +01:00
parent 1f21cd4329
commit 78f0a1152e
2 changed files with 4 additions and 1 deletions

View File

@@ -360,7 +360,9 @@ ORDER BY conkey, conname") as $row) {
function view($name) {
global $connection;
return array("select" => trim($connection->result("SELECT pg_get_viewdef(" . q($name) . ")")));
return array("select" => trim($connection->result("SELECT view_definition
FROM information_schema.views
WHERE table_schema = current_schema() AND table_name = " . q($name))));
}
function collations() {