[Dbix-class] Fwd: Simple query makes SQL::Abstract puke

Ido Perlmuter ido at ido50.net
Thu Oct 8 12:18:24 GMT 2009


---------- Forwarded message ----------
From: Ido Perlmuter <ido at ido50.net>
Date: Wed, Oct 7, 2009 at 6:40 PM
Subject: Simple query makes SQL::Abstract puke
To: dbix-class at lists.scsys.co.uk


Hi.

For some reason, the following query has been constantly causing an
SQL::Abstract error message.

Query: $c->model('DB::Stuff')->single({ stage_id =3D> $stage->id, num =3D> =
0,
foreign_id =3D> $foreign->id, type =3D> 0 });

Error: "can't quote an empty label".

This happens inside SQL::Abstract's _quote subroutine, which, for some
reason, gets an undefined label for quoting, which is weird, 'cause the
\%where hashref I'm giving the single method has nothing wrong with it. Or
does it?

Any help appreciated,
Ido.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20091008/3b5=
1756c/attachment.htm


More information about the DBIx-Class mailing list