[Bucardo-general] quoted table/column names

Greg Sabino Mullane greg at endpoint.com
Wed Mar 31 16:05:42 UTC 2010


> Are quoted object names supported?

They are, but there was a regression bug in version 4.4.0, fixed 
in 4.5.0. You can fix it with this patch:

@@ -2994,8 +2994,7 @@ sub start_controller {
                                        $x++;
                                    }
 
-                                   $x=0;
-                                   my $aliaslist = join ',' => map { "$_ AS $g->{cols}[$x++]" } @{$g->{safecols}};
+                                   my $aliaslist = join ',' => @{$g->{safecols}};
                                    if (length $aliaslist) {
                                        $aliaslist = ",$aliaslist";
                                    }
@@ -3928,8 +3927,7 @@ sub start_kid {
                    }
                }
 
-               $x=0;
-               my $aliaslist = join ',' => map { "$_ AS $g->{cols}[$x++]" } @{$g->{safecols}};
+               my $aliaslist = join ',' => @{$g->{safecols}};
                if (length $aliaslist) {
                    $aliaslist = ",$aliaslist";
                }


-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20100331/bc9c098e/attachment.bin 


More information about the Bucardo-general mailing list