mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 15:56:58 +02:00
Retain NULL tinyints in tinyint-to-boolean, fix #65.
This commit is contained in:
parent
8b2b2af076
commit
c21f3f06ff
@ -97,7 +97,8 @@
|
||||
"When using MySQL, strange things will happen, like encoding booleans into
|
||||
tinyiny that are either 0 (false) or 1 (true). Of course PostgreSQL wants
|
||||
'f' and 't', respectively."
|
||||
(if (string= "0" integer-string) "f" "t"))
|
||||
(when integer-string
|
||||
(if (string= "0" integer-string) "f" "t")))
|
||||
|
||||
(defun int-to-ip (int)
|
||||
"Transform an IP as integer into its dotted notation, optimised code from
|
||||
|
Loading…
Reference in New Issue
Block a user