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

2009-10-08 Thread Moritz Onken
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

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

2009-10-08 Thread Quinn Fazigu
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

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

2009-10-08 Thread Ido Perlmuter
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,

[Dbix-class] Re: Backcompat tests for the dev version of DBIx::Class::Schema::Loader

2009-10-08 Thread Zbigniew Lukasiak
Hi, I am now trying again to make it work and I am really sorry but even after all those IRC discussions I am still a bit puzzled about how the backcompat layer is supposed to work. So once again - I understand that the scenario is like that: I have an old schema I use the new Loader to load a

Re: [Dbix-class] Re: Backcompat tests for the dev version of DBIx::Class::Schema::Loader

2009-10-08 Thread Peter Rabbitson
On Thu, Oct 08, 2009 at 05:55:04PM +0200, Zbigniew Lukasiak wrote: Hi, I am now trying again to make it work and I am really sorry but even after all those IRC discussions I am still a bit puzzled about how the backcompat layer is supposed to work. So once again - I understand that the

Re: [Dbix-class] Re: Backcompat tests for the dev version of DBIx::Class::Schema::Loader

2009-10-08 Thread Zbigniew Lukasiak
On Fri, Oct 9, 2009 at 6:25 AM, Peter Rabbitson rabbit+d...@rabbit.us wrote: On Thu, Oct 08, 2009 at 05:55:04PM +0200, Zbigniew Lukasiak wrote: Hi, I am now trying again to make it work and I am really sorry but even after all those IRC discussions I am still a bit puzzled about how the

Re: [Dbix-class] Re: Backcompat tests for the dev version of DBIx::Class::Schema::Loader

2009-10-08 Thread Zbigniew Lukasiak
Just to be more precise: On Fri, Oct 9, 2009 at 6:40 AM, Zbigniew Lukasiak zzb...@gmail.com wrote: On Fri, Oct 9, 2009 at 6:25 AM, Peter Rabbitson rabbit+d...@rabbit.us wrote: On Thu, Oct 08, 2009 at 05:55:04PM +0200, Zbigniew Lukasiak wrote: Hi, I am now trying again to make it work and I