X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBIHacks.pm;h=6f977dee98ee2a90d93b7a96fac23cf1d1010a48;hb=a7e643b1c6f106f7d6a8bebca713feb3de8bf3f3;hp=f16c9355a2dac8be1c6ca9ba5e2e123bf8e48f38;hpb=583a0c658da959793c4cbcc4d882da8550b23f6c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index f16c935..6f977de 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -240,10 +240,11 @@ sub _resolve_aliastypes_from_select_args { local $sql_maker->{quote_char} = "\x00"; # so that we can regex away # generate sql chunks + local $sql_maker->{having_bind}; # these are throw away results my $to_scan = { restricting => [ $sql_maker->_recurse_where ($where), - $sql_maker->_order_by({ + $sql_maker->_parse_rs_attrs ({ map { $_ => $attrs->{$_} } (qw/group_by having/) }), ],