From: Greg Sabino Mullane Date: Sun, 24 May 2015 16:30:29 +0000 (-0400) Subject: Make sure we paren pkeylist in case it is a multi-pk X-Git-Tag: 5.4.0~36 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=aa8fdba41ccd957ca811d79ad7923523c4d1e709;p=bucardo.git Make sure we paren pkeylist in case it is a multi-pk --- diff --git a/Bucardo.pm b/Bucardo.pm index b7e450134..84ee82cd5 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -9222,7 +9222,7 @@ sub delete_rows { } ## Normal DELETE call with IN() clause elsif ('IN' eq $sqltype and ! exists $SQL{IN}{$tname}) { - $SQL{IN}{$tname} = sprintf '%sDELETE FROM %s WHERE %s IN (', + $SQL{IN}{$tname} = sprintf '%sDELETE FROM %s WHERE (%s) IN (', $self->{sqlprefix}, $tname, $goat->{pklist};