]> andersk Git - moira.git/blobdiff - backup/db2rest.awk
Back up sids the same way we back up gdss signatures.
[moira.git] / backup / db2rest.awk
index c1a5e6fa146d159505637dfe4d1cd308a60d6d60..07e637e9e17a1041f41ee5d05952132e3ffacd4d 100644 (file)
@@ -50,9 +50,9 @@ NF >= 2 {
                t = split(temp[2], temp2, ")");
                if (t != 2) printf "Can't parse %s\n", temp[2];
                printf "  char\tt_%s[%d];\n", vname[count], temp2[1]+1;
-               if ($1 == "signature") {
+               if ($1 == "signature" || $1 == "sid") {
                        vtype[count]="bin";
-                       printf "  EXEC SQL VAR t_signature IS STRING(%d);\n", temp2[1]+1;
+                       printf "  EXEC SQL VAR t_%s IS STRING(%d);\n", vname[count], temp2[1]+1;
                } else vtype[count]="str";
                vsize[count] = temp2[1]+1;
        } else if ($2 ~ /DATE/) {
This page took 0.032696 seconds and 4 git commands to generate.