Make sure we paren pkeylist in case it is a multi-pk
authorGreg Sabino Mullane <greg@endpoint.com>
Sun, 24 May 2015 16:30:29 +0000 (12:30 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sun, 24 May 2015 16:30:29 +0000 (12:30 -0400)
Bucardo.pm

index b7e450134d83126f13abda0ba2b64faa58ce9a8a..84ee82cd567ca780edd0c35f85705a3781e85685 100644 (file)
@@ -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};