Convert (in)equality with undef to (not) defined/IS NOT NULL ops
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 9 Jan 2014 17:34:53 +0000 (17:34 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 9 Jan 2014 18:51:44 +0000 (18:51 +0000)
commitb01a36887e55fe21df87a25d8d6a7ae63f31d04c
treea5e6d67bba0aff553b8a06de4a221278dda25a30
parentee4f475695be375f8a901ebd7f7673f8dbcfacc8
Convert (in)equality with undef to (not) defined/IS NOT NULL ops

We can't overload defined(), so this is the only way to do it.
We're not using IS NULL, since the converter can only hande 1:1
mapping between ops.
lib/Data/Query/ExprBuilder.pm
lib/Data/Query/Renderer/SQL/Naive.pm
t/expr.t
t/sql.t