Commit 21d4b8a7 authored by Matthias Lohr's avatar Matthias Lohr Committed by Benjamin Eberlei

[DDC-2110] fixed problem with existing table columns (postgresql)

parent 4abe8f76
...@@ -254,7 +254,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -254,7 +254,7 @@ class PostgreSqlPlatform extends AbstractPlatform
list($schema, $table) = explode(".", $table); list($schema, $table) = explode(".", $table);
$schema = "'" . $schema . "'"; $schema = "'" . $schema . "'";
} else { } else {
$schema = "ANY(string_to_array((select setting from pg_catalog.pg_settings where name = 'search_path'),','))"; $schema = "ANY(string_to_array((select replace(setting,'\"\$user\"',(SELECT user)) from pg_catalog.pg_settings where name = 'search_path'),','))";
} }
$whereClause .= "$classAlias.relname = '" . $table . "' AND $namespaceAlias.nspname = $schema"; $whereClause .= "$classAlias.relname = '" . $table . "' AND $namespaceAlias.nspname = $schema";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment