@@ 384-389 (lines=6) @@ | ||
381 | private function getTableWhereClause($table, $classAlias = 'c', $namespaceAlias = 'n') |
|
382 | { |
|
383 | $whereClause = $namespaceAlias.".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND "; |
|
384 | if (strpos($table, ".") !== false) { |
|
385 | list($schema, $table) = explode(".", $table); |
|
386 | $schema = $this->quoteStringLiteral($schema); |
|
387 | } else { |
|
388 | $schema = "ANY(string_to_array((select replace(replace(setting,'\"\$user\"',user),' ','') from pg_catalog.pg_settings where name = 'search_path'),','))"; |
|
389 | } |
|
390 | ||
391 | $table = new Identifier($table); |
|
392 | $table = $this->quoteStringLiteral($table->getName()); |
@@ 743-746 (lines=4) @@ | ||
740 | { |
|
741 | $user = 'USER_NAME()'; |
|
742 | ||
743 | if (strpos($table, '.') !== false) { |
|
744 | list($user, $table) = explode('.', $table); |
|
745 | $user = $this->quoteStringLiteral($user); |
|
746 | } |
|
747 | ||
748 | return "SELECT col.column_name, |
|
749 | COALESCE(def.user_type_name, def.domain_name) AS 'type', |