Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6a9e09c

Browse files
committed
Add missing casts in information schema
From: Clément Prévost <prevostclement@gmail.com>
1 parent 2b8fd4f commit 6a9e09c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/catalog/information_schema.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -2742,9 +2742,9 @@ CREATE VIEW _pg_foreign_table_columns AS
27422742
*/
27432743
CREATE VIEW column_options AS
27442744
SELECT CAST(current_database() AS sql_identifier) AS table_catalog,
2745-
c.nspname AS table_schema,
2746-
c.relname AS table_name,
2747-
c.attname AS column_name,
2745+
CAST(c.nspname AS sql_identifier) AS table_schema,
2746+
CAST(c.relname AS sql_identifier) AS table_name,
2747+
CAST(c.attname AS sql_identifier) AS column_name,
27482748
CAST((pg_options_to_table(c.attfdwoptions)).option_name AS sql_identifier) AS option_name,
27492749
CAST((pg_options_to_table(c.attfdwoptions)).option_value AS character_data) AS option_value
27502750
FROM _pg_foreign_table_columns c;
@@ -2849,8 +2849,8 @@ GRANT SELECT ON foreign_servers TO PUBLIC;
28492849
CREATE VIEW _pg_foreign_tables AS
28502850
SELECT
28512851
CAST(current_database() AS sql_identifier) AS foreign_table_catalog,
2852-
n.nspname AS foreign_table_schema,
2853-
c.relname AS foreign_table_name,
2852+
CAST(n.nspname AS sql_identifier) AS foreign_table_schema,
2853+
CAST(c.relname AS sql_identifier) AS foreign_table_name,
28542854
t.ftoptions AS ftoptions,
28552855
CAST(current_database() AS sql_identifier) AS foreign_server_catalog,
28562856
CAST(srvname AS sql_identifier) AS foreign_server_name,

0 commit comments

Comments
 (0)