Subject: | warning from zero count with SQLite |
Date: | Fri, 10 Jan 2014 13:54:23 +0000 |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
DBIx-Class-Helpers's test suite generates a warning:
Use of uninitialized value $count in numeric lt (<) at /opt/perl-5.18.2/lib/site_perl/5.18.2/DBIx/Class/ResultSet.pm line 1619.
t/schema/lint-contents.t ............... ok
I initially reported it as a bug in DBIx-Class-Helpers
<https://rt.cpan.org/Ticket/Display.html?id=91977>, and Frew replied
|This is actually a bug in DBIx::Class and/or SQLite. Basically if you
|have a resultset and call count on it, if there were no rows, SQLite
|returns NULL/undef (which I think is standard) and DBIx::Class does
|this, which warns:
referring to the line identified in the warning message.
-zefram