[Dbix-class] [PATCH] allow non-columns to be passed in joinsusing the from a

Robert Dobbs bobisdobbs at hotmail.com
Thu Sep 21 01:55:21 CEST 2006


>From: mike <pulsation at gmail.com>
>Date: Wed, 20 Sep 2006 18:22:42 -0500
>
>   LEFT JOIN `authorizations` `authorizations` ON (
>`authorizations`.`product_id` = `me`.`product_id` AND
>`authorizations.active` = 1 )
>
>the affected part is the second condition for the JOIN.  without this
>patch, the 1 is quoted as `1`, which is undesired.  with the patch,
>passing the 1 as a scalar reference allows it to be passed unquoted.
>the associated search construct is:
>
>$rs->search
>(
>     {
>         'me.publisher_id'                   => $publisher->id,
>         'me.active'                         => 1,
>         'authorizations.authorization_id'   => undef
>     },

Isn't it supposed to figure out on its own whether to quote or not based on 
the field type in the schema?

Mark

_________________________________________________________________
Get today's hot entertainment gossip  http://movies.msn.com/movies/hotgossip




More information about the Dbix-class mailing list