Subject: | cond with NULL checks spewing warnings |
Date: | Tue, 1 Apr 2014 09:46:08 -0700 |
To: | bug-DBIx-Class-Fixtures [...] rt.cpan.org |
From: | Aran Deltac <aran [...] ziprecruiter.com> |
If I have a cond like this:
"cond": { "column": undef }
Which should produce this SQL;
column IS NULL
I get a bunch of warnings like this when I call dump():
Use of uninitialized value $_ in substitution (s///) at
/usr/local/share/perl/5.14.2/DBIx/Class/Fixtures.pm line 820.
I tried this instead (old-school SQL::Abstract syntax) using
DBIx::Class::Fixtures' ability to create a scalar ref if the first
character in the value is a backslash:
"cond": { "column": "\\IS NULL" }
And that works.