pgloader/test/sqlite/test_pk.sql
Dimitri Fontaine 25e5ea9ac3 Refactor error handling in complete-pgsql-database.
Given new SQLite test case from issue #563 we see that pgloader doesn't
handle errors gracefully in post-copy stage. That's because the API were not
properly defined, we should use pgsql-execute-with-timing rather than other
construct here, because it allows the "on error resume next" behavior we
want with after load DDL statements.

See #563.
2017-06-08 12:09:11 +02:00

15 lines
289 B
SQL
Vendored

--
-- sqlite3 -batch test_pk.db < sqlite_pk.sql
--
PRAGMA foreign_keys = ON;
CREATE TABLE division_kind (
division_kind_id INTEGER PRIMARY KEY
);
CREATE TABLE division (
division_id INTEGER PRIMARY KEY,
division_kind_id INTEGER REFERENCES division_kind(division_kind_id)
);