Skip Menu |

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

Report information
The Basics
Id: 115585
Status: new
Priority: 0/
Queue: DBIx-Class-Fixtures

People
Owner: Nobody in particular
Requestors: mmusgrove [...] cpan.org
Cc:
AdminCc:

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



Subject: Specifying a null or not null condition causes uninitialized value warnings
If a set or rule contains a null or not null condition, the following warning is generated for each row queried in the table: Use of uninitialized value $_ in substitution (s///) at <path to>/lib/DBIx/Class/Fixtures.pm line 816. Example config: { "might_have": { "fetch": 0 }, "has_many": { "fetch": 0 }, "sets": [{ "class": "Artist", "cond": { "me.name": { "!=": null } }, "quantity": "all", "fetch": [{ "rel": "cds" }] }] }
Matt Trout provided a work-around on #dbix-class: "cond": { "me.name": "\IS NOT NULL" },