Skip to content

Commit ad5e4e1

Browse files
authored
Merge pull request #244 from constructive-io/feat/foreign-table
Add CREATE FOREIGN TABLE fixture with schema-qualified column type
2 parents 4346617 + e77f00e commit ad5e4e1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

__fixtures__/generated/generated.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20888,6 +20888,7 @@
2088820888
"original/tables/match-4.sql": "CREATE TABLE post_type (\n id integer NOT NULL PRIMARY KEY\n)",
2088920889
"original/tables/match-5.sql": "DROP TABLE IF EXISTS assembly_seat CASCADE",
2089020890
"original/tables/match-6.sql": "CREATE TABLE assembly_seat (\n id integer NOT NULL PRIMARY KEY\n)",
20891+
"original/tables/foreign_table-1.sql": "CREATE FOREIGN TABLE public.foo (\n bar pg_catalog.varchar(50) \n) SERVER dummy OPTIONS (schema_name 'public', table_name 'foo')",
2089120892
"original/tables/foreign-1.sql": "CREATE TABLE orders (\n order_id integer PRIMARY KEY,\n product_no integer REFERENCES products (product_no),\n quantity integer\n)",
2089220893
"original/tables/foreign-2.sql": "CREATE TABLE orders (\n order_id integer PRIMARY KEY,\n product_no integer REFERENCES products,\n quantity integer\n)",
2089320894
"original/tables/foreign-3.sql": "CREATE TABLE t1 (\n a integer PRIMARY KEY,\n b integer,\n c integer,\n FOREIGN KEY (b, c) REFERENCES other_table (c1, c2)\n)",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- CREATE FOREIGN TABLE with schema-qualified column type and FDW options
2+
CREATE FOREIGN TABLE public.foo (
3+
bar pg_catalog.varchar(50)
4+
) SERVER dummy OPTIONS (schema_name 'public', table_name 'foo');

0 commit comments

Comments
 (0)