pgloader/test
Dimitri Fontaine 04ddf940d9 Left pad COPY octal chars with 0, fix #275.
The COPY TEXT format accepts non printable characters with an escaped
sequence wherin pgloader can pass in the octal number for the character
in its encoding. When doing that with small numbers like \6 and the
non-printable character is then followed by other numbers, then it
becomes e.g. \646 which might not be part of the target encoding...

To fix, always left pad the character octal number with zeroes, so that
we now send in \00646 which COPY knows how to read: the char at \006
then 4 then 6.

Also copy the test case over to pgloader and run it in the test suite.
2015-08-20 18:17:18 +02:00
..
data Implement support for PostgreSQL COPY format, fix #145. 2015-01-02 18:49:17 +01:00
parse Add the option to preserve MySQL index names, fix #187. 2015-03-07 20:19:47 +01:00
regress Left pad COPY octal chars with 0, fix #275. 2015-08-20 18:17:18 +02:00
sqlite Add some SQLite test cases for real type, see #249. 2015-06-16 23:13:52 +02:00
allcols.load Improve database connection parsing to use sensible defaults. 2013-10-19 22:39:09 +02:00
archive.load Improve SQL blocks support, fix #265. 2015-07-24 17:41:35 +02:00
bossa-all.load Improve tests and add test cases. 2013-11-26 16:48:45 +01:00
bossa.load Update the bossa.load test case. 2014-04-29 14:51:14 +02:00
bossa.sql Improve tests and add test cases. 2013-11-26 16:48:45 +01:00
census-places.load Fix census-places URL location of the source file. 2015-04-17 21:58:19 +02:00
copy-hex.load Implement more COPY options, fix #218. 2015-04-30 14:30:16 +02:00
copy.load Fix index creation reporting, see #251. 2015-07-18 23:06:15 +02:00
csv-before-after.load Fix quoting of TRUNCATE command, fix #84. 2014-06-20 13:10:39 +02:00
csv-districts-stdin.load Fix loading data from stdin: fix #53. 2014-04-27 23:38:02 +02:00
csv-districts.load Implement the option to disable triggers when loading data. 2015-02-19 15:05:10 +01:00
csv-error.load Fix issue #49 where data could be considered as a format string. 2014-04-23 17:03:35 +02:00
csv-escape-mode.load Add test coverage for #80. 2015-06-25 14:16:12 +02:00
csv-filename-pattern.load Add support for postgres:// URI prefixes, fix #135. 2014-12-15 20:32:49 +01:00
csv-header.load Travis: Fix the text case connection string. 2015-05-21 16:29:14 +02:00
csv-hstore.load Catch PostgreSQL internal errors too, fixes #155. 2015-01-21 13:01:28 +01:00
csv-json.load Allow for more options in the CSV escape character, fix #38. 2015-05-22 12:31:06 +02:00
csv-keep-extra-blanks.load Switch to the newer cl-csv API. 2014-01-11 18:28:24 +01:00
csv-newline.load Implement new CSV option "lines terminated by", fixes #23. 2014-02-04 20:58:46 +01:00
csv-non-printable.load Left pad COPY octal chars with 0, fix #275. 2015-08-20 18:17:18 +02:00
csv-nulls.load Square brackets around source field options are now mandatory. 2014-10-02 01:17:24 +02:00
csv-parse-date.load Fix parsing dates with less-than 4 digits, fix #266. 2015-07-26 14:41:44 +02:00
csv-trim-extra-blanks.load Switch to the newer cl-csv API. 2014-01-11 18:28:24 +01:00
csv.load Handle camelCase column names for CSV, fix #79 again. 2014-06-16 17:33:14 +02:00
dbf-zip.load Improve database connection parsing to use sensible defaults. 2013-10-19 22:39:09 +02:00
dbf.load Implement the option to disable triggers when loading data. 2015-02-19 15:05:10 +01:00
errors.load Improve CSV error handling, thanks to cl-csv continue restart. 2014-02-08 17:51:15 +01:00
fields-with-periods.load Accept periods in CSV field names 2015-05-15 07:22:07 -07:00
fixed.load Implement drop indexes option for copy and fixed. 2015-07-16 21:39:06 +02:00
geolite.sql Implement BEFORE/AFTER LOAD EXECUTE 'filename'. 2014-05-04 23:04:45 +02:00
ixf.load Travis: Adapt test/ixf.load to work against 9.1. 2014-07-17 17:35:41 +02:00
Makefile Left pad COPY octal chars with 0, fix #275. 2015-08-20 18:17:18 +02:00
nofile.load Improve tests and add test cases. 2013-11-26 16:48:45 +01:00
overflow.load Add automated regression tests. 2014-06-03 12:19:23 +02:00
partial.load Fix index creation reporting, see #251. 2015-07-18 23:06:15 +02:00
README.md Port tests from pgloader 2.x, implement trailing-sep. 2013-10-13 22:10:07 +02:00
reformat.load Improve database connection parsing to use sensible defaults. 2013-10-19 22:39:09 +02:00
regress.sh Travis: let's see some debug information. 2014-06-16 21:15:22 +02:00
sakila.load Review MySQL default options. 2014-09-21 12:19:20 -05:00
serial.load Improve database connection parsing to use sensible defaults. 2013-10-19 22:39:09 +02:00
simple.load Improve database connection parsing to use sensible defaults. 2013-10-19 22:39:09 +02:00
sqlite-base64.load Review SQLite blob types in light of "manifest typing", fix #60. 2014-05-16 23:13:57 +02:00
sqlite-chinook.load Add support for SQLite "double" data type, Fix #59. 2014-05-15 23:28:21 +02:00
sqlite.load Add support for the CAST rule to SQLite sources. 2014-10-13 00:52:55 +02:00
udc.load Improve parsing of list separating commas wrt to whitespacing. 2013-11-23 21:49:08 +01:00
xzero.load Square brackets around source field options are now mandatory. 2014-10-02 01:17:24 +02:00

pgloader tests

In the parser directory are tests for the parser only, in the current directory are tests that can be run to import data.