Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 92028
Status: rejected
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
On Fri Jan 10 08:54:35 2014, zefram@fysh.org wrote: Show quoted text
> 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. >
Bouncing back, bug isn't in DBIC, but indeed in DBIC::Helpers: https://rt.cpan.org/Ticket/Display.html?id=91977#txn-1310426