Allow args to use : or = as delimiters.
authorGreg Sabino Mullane <greg@endpoint.com>
Sun, 1 Jun 2014 22:07:48 +0000 (18:07 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sun, 1 Jun 2014 22:07:48 +0000 (18:07 -0400)
Allow more aliases for tables in add sync calls.

bucardo

diff --git a/bucardo b/bucardo
index 0d9280f508159f8c941e80ce1b198aae807aebaa..ecc87f822fdafb3b754034f7396b81a8769427de 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -3901,7 +3901,7 @@ sub add_sync {
         maxkicks                 maxkicks             numeric          null
         isolation_level|txnmode  isolation_level      0                null
         rebuild_index|rebuildindex   rebuild_index    numeric          null
-        tables                   tables               0                skip
+        relation|relations|table|tables                   tables               0                skip
     };
 
     ## Fullcopy syncs get some of their defaults overriden
@@ -5694,17 +5694,17 @@ sub process_args {
 
     my %arg;
 
-    while ($string =~ m/(\w+)\s*=\s*"(.+?)" /g) {
+    while ($string =~ m/(\w+)\s*[=:]\s*"(.+?)" /g) {
         $arg{lc $1} = $2;
     }
     $string =~ s/\w+\s*=\s*".+?" / /g;
 
-    while ($string =~ m/(\w+)\s*=\s*'(.+?)' /g) {
+    while ($string =~ m/(\w+)\s*[=:]\s*'(.+?)' /g) {
         $arg{lc $1} = $2;
     }
     $string =~ s/\w+\s*=\s*'.+?' / /g;
 
-    while ($string =~ m/(\w+)\s*=\s*(\S+)/g) {
+    while ($string =~ m/(\w+)\s*[=:]\s*(\S+)/g) {
         $arg{lc $1} = $2;
     }
     $string =~ s/\w+\s*=\s*\S+/ /g;