Dimitri Fontaine
c21f3f06ff
Retain NULL tinyints in tinyint-to-boolean, fix #65 .
2014-05-24 00:03:41 +02:00
Dimitri Fontaine
9fa638e233
Handle NIL values in transform functions.
...
When declaring types of arguments (mainly done for hinting the Common
Lisp compiler into generating more efficient code), it's important to
account for the possibility of the arguments being NIL, of NULL type.
That's been made clear in the way the projection function is now
generated in src/sources/source.lisp in project-fields function, with
all the arguments now being &optional so that we are able to cope with
ragged CSV files.
The only expected change from this patch is missing warnings in some
test cases, such as test/reformat.load, test/fixed.load and
test/archive.load.
2014-04-18 22:51:30 +02:00
Dimitri Fontaine
b60f40a5fa
Fix transform function date-with-no-separator.
2014-01-26 17:48:45 +01:00
Dimitri Fontaine
c56bbab0c4
Fix #24 by allowing cast rules adding only transformation functions.
2014-01-20 16:00:09 +01:00
Dimitri Fontaine
fdfcb8dde9
Fix the byte-vector-to-bytea transform function (handle nil, better type declaration).
2013-11-22 17:18:09 +01:00
Dimitri Fontaine
78b42cc4ae
Properly handle blob formats, converting then to PostgreSQL bytea input.
2013-11-22 11:01:20 +01:00
Cédric Villemain
197ce706b8
Set date to NULL when year is 0000
...
And remove other now useles checks
2013-11-21 11:00:01 +01:00
Dimitri Fontaine
ee857e7523
While at it, provide a proper right-trim transforms function.
2013-11-18 11:55:26 +01:00
Dimitri Fontaine
0d3c6f4a2c
Add comments in transforms.lisp.
2013-11-17 22:10:45 +01:00
Dimitri Fontaine
79fd109644
Fix zero-dates-to-null to work with datetime and date string.
2013-11-13 22:35:30 +01:00
Dimitri Fontaine
a41ce12023
Transform dates with just day of month set to "00" to NIL.
2013-11-13 21:45:11 +01:00
Dimitri Fontaine
9496382b65
Fix type declaration in transform function time-with-no-separator.
2013-11-08 21:50:19 +01:00
Dimitri Fontaine
9d5dad7e3e
Implement support for FIXED COLS input files, reaching release candidate status.
2013-11-07 15:39:28 +01:00
Dimitri Fontaine
63005168fd
MySQL SET datatype support: convert to ENUM Arrays.
2013-11-01 11:34:43 +00:00
Dimitri Fontaine
86afe36c84
Implement float-to-string as transform function.
2013-10-24 11:05:34 +02:00
Dimitri Fontaine
fb818ee0e3
Move sources into their own subdirectory, assorted cleaning.
2013-10-20 19:09:09 +02:00