$cond = do {
my $sqla = $rsrc->storage->sql_maker;
local $sqla->{_dequalify_idents} = 1;
+ local $sqla->{_table_name} = $rsrc->name;
\[ $sqla->_recurse_where($self->{cond}) ];
};
}
# poor man's de-qualifier
sub _quote {
- $_[0]->next::method( ( $_[0]{_dequalify_idents} and ! ref $_[1] )
+ $_[0]->next::method( ( $_[0]{_dequalify_idents} and (! ref $_[1])
+ and $_[1] ne $_[0]{_table_name} )
? $_[1] =~ / ([^\.]+) $ /x
: $_[1]
);