Tested by running t/resultset/update_delete against pg with quote char " and name sep .
if ( ref $attrs->{select} ne 'ARRAY' or @{$attrs->{select}} != @pcols );
# This is hideously ugly, but SQLA does not understand multicol IN expressions
+ my $sqla = $self->_sql_maker;
my ($sql, @bind) = @${$rs->as_query};
- $sql = sprintf ('(%s) IN %s',
- join (', ', @pcols),
+ $sql = sprintf ('(%s) IN %s', # the as_query stuff is already enclosed in ()s
+ join (', ', map { $sqla->_quote ($_) } @pcols),
$sql,
);
my $tkfks = $schema->resultset('FourKeys_to_TwoKeys');
-warn "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
-
my ($fa, $fb) = $tkfks->related_resultset ('fourkeys')->populate ([
[qw/foo bar hello goodbye sensors read_count/],
[qw/1 1 1 1 a 10 /],