Am 08.10.2009 um 14:18 schrieb Ido Perlmuter:
-- Forwarded message --
From: Ido Perlmuter i...@ido50.net
Date: Wed, Oct 7, 2009 at 6:40 PM
Subject: Simple query makes SQL::Abstract puke
To: dbix-class@lists.scsys.co.uk
Hi.
For some reason, the following query has been
On Thu, Oct 8, 2009 at 8:18 AM, Ido Perlmuter i...@ido50.net wrote:
For some reason, the following query has been constantly causing an
SQL::Abstract error message.
Query: $c-model('DB::Stuff')-single({ stage_id = $stage-id, num = 0,
foreign_id = $foreign-id, type = 0 });
Error: can't
Yep, that was my stupid mistake. $stage-id was OK, it was $foreign-id that
made the problem... I forgot I missed a many_to_many connection, so
$foreign-id actually returned an array instead of the unique row I really
wanted. Don't know why I didn't think about using Dumper to check the
hash-ref,