Skip Menu |

This queue is for tickets about the SQL-Interpolate CPAN distribution.

Report information
The Basics
Id: 11810
Status: resolved
Priority: 0/
Queue: SQL-Interpolate

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.31_01
Fixed in: (no value)



Subject: Handling of undef/NULL values
I wonder if undefined values should be handled by using "... IS NULL". That is, the call to sql_interp({bla => undef}) should return (" bla is NULL", ()) rather than (" bla =?", (undef)) Unfortunately such a change would probably be incompatible because users might assume that undef is handled the same as the empty string. Also, the DBI documentation mentions some incompatibilities in handling NULL values between database drivers (see the "Null values" section). Regards, Slaven
Thanks. This suggestion is implemented in version 0.33.