Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 91977
Status: resolved
Priority: 0/
Queue: DBIx-Class-Helpers

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 test suite
Date: Thu, 9 Jan 2014 15:19:30 +0000
To: bug-DBIx-Class-Helpers [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 206b
Test generates 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 -zefram
Subject: Re: [rt.cpan.org #91977] warning from test suite
Date: Fri, 10 Jan 2014 07:47:29 -0600
To: Zefram via RT <bug-DBIx-Class-Helpers [...] rt.cpan.org>
From: fREW Schmidt <frioux [...] gmail.com>
Download (untitled) / with headers
text/plain 411b
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: https://metacpan.org/source/RIBASUSHI/DBIx-Class-0.08250/lib/DBIx/Class/ResultSet.pm#L1619 Will close this when I can log into RT. -- fREW Schmidt http://blog.afoolishmanifesto.com
Download (untitled)
application/pgp-signature 836b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #91977] warning from test suite
Date: Fri, 10 Jan 2014 13:55:28 +0000
To: Frew Schmidt via RT <bug-DBIx-Class-Helpers [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 215b
Frew Schmidt via RT wrote: Show quoted text
>This is actually a bug in DBIx::Class and/or SQLite.
Thanks for the explanation. I've rereported it as a bug in DBIx-Class, <https://rt.cpan.org/Ticket/Display.html?id=92028>. -zefram
Subject: Re: [rt.cpan.org #91977] warning from test suite
Date: Fri, 10 Jan 2014 14:39:14 +0000
To: Zefram via RT <bug-DBIx-Class-Helpers [...] rt.cpan.org>
From: Peter Rabbitson <ribasushi [...] cpan.org>
Download (untitled) / with headers
text/plain 1.1k
Frew Schmidt via RT wrote: Show quoted text
> 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)
Nonsense. A COUNT() function always returns an integer, not only in SQLite but any RDBMS I've ever seen (a lot of stuff would break if this was not the case). The problem is that ::AutoRemoveColumns is broken (and evidently undertested). It does not allow one to specify an explicit selection list (which is what the DBIC core code correctly does here [1]) - it will always add the default list on its own (since it does not do a proper secondary ->search() chain). The result is: perl -Ilib -It/lib -MTestSchema -e 'my $s = TestSchema->deploy_or_connect; $s->storage->debug(1); $s->resultset("Bloaty")->count' SELECT "me"."id", COUNT( * ) FROM "Bloaty" "me": Use of uninitialized value $count in numeric lt (<) at /home/rabbit/perl5/perlbrew/perls/5.16.2/lib/site_perl/5.16.2/DBIx/Class/ResultSet.pm line 1619. Not a DBIC bug, will close 92028 when PAUSE is back. [1] https://github.com/dbsrgits/dbix-class/blob/master/lib/DBIx/Class/ResultSet.pm#L1673
Fixed in 2.021001


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.