Changeset: 191d9077e78b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=191d9077e78b
Modified Files:
clients/mapiclient/dump.c
Branch: Jul2015
Log Message:
Fix for bug 3839.
diffs (21 lines):
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -372,13 +372,13 @@ dump_foreign_keys(Mapi mid, const char *
int on_update;
int on_delete;
- if (action > 0 &&
- (on_delete = action & 255) < NR_ACTIONS &&
+ if ((on_delete = action & 255) != 0 &&
+ on_delete < NR_ACTIONS &&
on_delete != 2 /* RESTRICT -- default */)
mnstr_printf(toConsole, " ON DELETE %s",
actions[on_delete]);
- if (action > 0 &&
- (on_update = (action >> 8) & 255) < NR_ACTIONS &&
+ if ((on_update = (action >> 8) & 255) != 0 &&
+ on_update < NR_ACTIONS &&
on_update != 2 /* RESTRICT -- default */)
mnstr_printf(toConsole, " ON UPDATE %s",
actions[on_update]);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list