@@ -8,7 +8,7 @@ OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
88--Testcase 03:
99CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
1010--Testcase 04:
11- IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
11+ IMPORT FOREIGN SCHEMA main EXCEPT ("types_PostGIS") FROM SERVER sqlite_svr INTO public;
1212--Testcase 05:
1313SELECT * FROM "type_STRING";
1414 col
@@ -143,7 +143,7 @@ INSERT INTO "type_STRING"(col) VALUES ('string') ON CONFLICT DO NOTHING RETURNIN
143143ERROR: RETURNING clause is not supported
144144--Testcase 37:
145145EXPLAIN (VERBOSE, COSTS OFF)
146- INSERT INTO "type_STRING"(col) VALUES ('string') RETURNING *;
146+ INSERT INTO "type_STRING"(col) VALUES ('string') ON CONFLICT DO NOTHING RETURNING *;
147147ERROR: RETURNING clause is not supported
148148--Testcase 38:
149149INSERT INTO "type_BYTE"(col) VALUES ('c') RETURNING *;
@@ -499,9 +499,24 @@ ALTER TABLE inserttest01 ALTER COLUMN col1 OPTIONS (ADD key 'true');
499499--Testcase 139:
500500DELETE FROM inserttest01 RETURNING *;
501501ERROR: RETURNING clause is not supported
502+ --Testcase 140:
503+ INSERT INTO "type_STRING"(col) VALUES ('string_ocdn') ON CONFLICT DO NOTHING;
504+ --Testcase 141:
505+ EXPLAIN (VERBOSE, COSTS OFF)
506+ INSERT INTO "type_STRING"(col) VALUES ('string_ocdn') ON CONFLICT DO NOTHING;
507+ QUERY PLAN
508+ -------------------------------------
509+ Insert on public."type_STRING"
510+ Conflict Resolution: NOTHING
511+ -> Result
512+ Output: 'string_ocdn'::text
513+ (4 rows)
514+
515+ --Testcase 142:
516+ DELETE FROM "type_STRING";
502517--Testcase 200:
503518DROP EXTENSION sqlite_fdw CASCADE;
504- NOTICE: drop cascades to 65 other objects
519+ NOTICE: drop cascades to 64 other objects
505520DETAIL: drop cascades to server sqlite_svr
506521drop cascades to foreign table department
507522drop cascades to foreign table employee
@@ -536,7 +551,6 @@ drop cascades to foreign table "type_MACADDRpk"
536551drop cascades to foreign table "type_MACADDR"
537552drop cascades to foreign table "type_MACADDR8pk"
538553drop cascades to foreign table "type_MACADDR8"
539- drop cascades to foreign table "types_PostGIS"
540554drop cascades to foreign table "type_JSON"
541555drop cascades to foreign table "type_JSONB"
542556drop cascades to foreign table "BitT"
0 commit comments