Changeset: 1f7ac360993c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1f7ac360993c
Modified Files:
clients/mapiclient/dump.c
Branch: Jul2021
Log Message:
Dump INSERT ONLY information.
diffs (17 lines):
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -1901,11 +1901,11 @@ dump_table_alters(Mapi mid, const char *
}
while ((mapi_fetch_row(hdl)) != 0) {
const char *access = mapi_fetch_field(hdl, 0);
- if (access && *access == '1') {
+ if (access && (*access == '1' || *access == '2')) {
mnstr_printf(toConsole, "ALTER TABLE ");
dquoted_print(toConsole, schema, ".");
dquoted_print(toConsole, tname, " ");
- mnstr_printf(toConsole, "SET READ ONLY;\n");
+ mnstr_printf(toConsole, "SET %s ONLY;\n", *access ==
'1' ? "READ" : "INSERT");
}
}
mapi_close_handle(hdl);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list