Dimitri Fontaine 598c860cf5 Improve user code parsing, fix #297.
To be able to use "t" (or "nil") as a column name, pgloader needs to be
able to generate lisp code where those symbols are available. It's
simple enough in that a Common Lisp package that doesn't :use :cl
fullfills the condition, so intern user symbols in a specially crafted
package that doesn't :use :cl.

Now, we still need to be able to run transformation code that is using
the :cl package symbols and the pgloader.transforms functions too. In
this commit we introduce a heuristic to pick symbols either as functions
from pgloader.transforms or anything else in pgloader.user-symbols.

And so that user code may use NIL too, we provide an override mechanism
to the intern-symbol heuristic and use it only when parsing user code,
not when producing Common Lisp code from the parsed load command.
2015-09-21 13:23:21 +02:00
..
2015-08-24 16:42:39 +02:00
2014-04-29 14:51:14 +02:00
2013-11-26 16:48:45 +01:00
2015-09-21 13:23:21 +02:00
2013-11-26 16:48:45 +01:00
2014-06-03 12:19:23 +02:00
2015-09-07 20:24:00 +02:00
2014-09-21 12:19:20 -05: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.