Changeset: fc1bfe0cdd20 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fc1bfe0cdd20
Modified Files:
clients/mapiclient/dump.c
Branch: Jan2022
Log Message:
Merge with Jul2021 branch.
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
@@ -1910,11 +1910,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