PostgreSQL: Fix current schema in view definition
This commit is contained in:
parent
6f972ff9ab
commit
96be913994
|
@ -455,7 +455,7 @@ ORDER BY connamespace, conname") as $row) {
|
|||
|
||||
function view($name) {
|
||||
global $connection;
|
||||
return array("select" => trim($connection->result("SELECT pg_get_viewdef(" . $connection->result("SELECT oid FROM pg_class WHERE relname = " . q($name)) . ")")));
|
||||
return array("select" => trim($connection->result("SELECT pg_get_viewdef(" . $connection->result("SELECT oid FROM pg_class WHERE relnamespace = (SELECT oid FROM pg_namespace WHERE nspname = current_schema()) AND relname = " . q($name)) . ")")));
|
||||
}
|
||||
|
||||
function collations() {
|
||||
|
|
|
@ -3,6 +3,7 @@ Elasticsearch, ClickHouse: Do not print response if HTTP code is not 200
|
|||
MySQL: Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749)
|
||||
PostgreSQL: Export all FKs after all CREATE TABLE (PR #351)
|
||||
PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738)
|
||||
PostgreSQL: Do not show view definition from other schema (PR #392)
|
||||
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
||||
Re-enable PHP warnings (regression from 4.7.8)
|
||||
|
||||
|
|
Loading…
Reference in a new issue