pgloader/test/dbf-memo.load
Dimitri Fontaine 98b465fbef Add the new DBF tests in the test suite.
All with expected results so that we can track regressions there.
2019-05-11 22:13:18 +02:00

14 lines
451 B
Fish

LOAD DBF
FROM data/DNORDOC.DBF with encoding cp866
INTO postgresql:///pgloader
TARGET TABLE dbf.dnordoc
WITH truncate, create table, disable triggers
BEFORE LOAD DO $$ create schema if not exists dbf; $$
cast
column dnordoc.normdocid
to uuid
using (lambda (normdocid)
(empty-string-to-null (right-trim normdocid))),
column dnordoc.doctype to integer using db3-numeric-to-pgsql-integer;