Retain NULL tinyints in tinyint-to-boolean, fix #65.

This commit is contained in:
Dimitri Fontaine 2014-05-24 00:03:41 +02:00
parent 8b2b2af076
commit c21f3f06ff

View File

@ -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