mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
PostgreSQL: Display definitions of materialized views (bug #682)
This commit is contained in:
@@ -438,9 +438,7 @@ ORDER BY conkey, conname") as $row) {
|
||||
|
||||
function view($name) {
|
||||
global $connection;
|
||||
return array("select" => trim($connection->result("SELECT view_definition
|
||||
FROM information_schema.views
|
||||
WHERE table_schema = current_schema() AND table_name = " . q($name))));
|
||||
return array("select" => trim($connection->result("SELECT pg_get_viewdef(" . $connection->result("SELECT oid FROM pg_class WHERE relname = " . q($name)) . ")")));
|
||||
}
|
||||
|
||||
function collations() {
|
||||
|
Reference in New Issue
Block a user