[Dbix-class] patch for ResultSet::find_or_new

2008-01-13 Thread Patrick Weemeeuw
There is a small bug in find_or_new: when the find part fails, it calls new_result with the hash containing the values that were used for the search. It should use no values at all instead. Example buggy case: $o = $...-find_or_new( { id = $id } ) with id a not null primary key. When $id is

Re: [Dbix-class] Setting up database connection at run-time

2008-01-13 Thread Matt S Trout
On Sun, Jan 13, 2008 at 02:10:49PM -0500, Juan Camacho wrote: This question is somewhere between DBix::Class and Catalyst. I'm starting a catalyst application where each account will have their own database. The schema is identical for each database and there is one master database where

Re: [Dbix-class] fyi, official terse Muldis D dialect for daily work

2008-01-13 Thread Matt S Trout
On Sun, Jan 13, 2008 at 06:40:21PM -0800, Darren Duncan wrote: I still have to work out the details of the new dialect, but here's an example of how Muldis D code in the terse dialect could look; compare this 'square' function with the other email: [ 'function', 'square', '', [