Changeset: ef92b767577b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ef92b767577b
Modified Files:
clients/mapiclient/dump.c
Branch: sciql
Log Message:
'\d [obj]' should work correctly for both tables and arrays now
isarray always has value, need to check it's content
diffs (30 lines):
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -800,7 +800,7 @@ describe_table(Mapi mid, char *schema, c
}
if (view)
view = strdup(view);
- if (isarray) {
+ if (isarray[0] == 't') {
isarray = "t";
} else {
isarray = "f";
@@ -813,7 +813,7 @@ describe_table(Mapi mid, char *schema, c
fprintf(stderr, "table %s.%s does not exist\n", schema,
tname);
else
fprintf(stderr, "%s %s.%s is not unique, corrupt
catalog?\n",
- *isarray == 't' ? "array" : "table",
schema, tname);
+ isarray[0] == 't' ? "array" : "table",
schema, tname);
goto bailout;
}
@@ -824,7 +824,7 @@ describe_table(Mapi mid, char *schema, c
}
mnstr_printf(toConsole, "CREATE %s \"%s\".\"%s\" ",
- *isarray == 't' ? "ARRAY" : "TABLE", schema, tname);
+ isarray[0] == 't' ? "ARRAY" : "TABLE", schema, tname);
if (dump_column_definition(mid, toConsole, schema, tname, NULL,
foreign))
goto bailout;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list