Update of /cvsroot/monetdb/clients/src/mapiclient
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31681

Modified Files:
      Tag: Clients_1-18
        dump.c 
Log Message:
Don't dump the default action.  This fixes bug 1733236.


Index: dump.c
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapiclient/dump.c,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -u -d -r1.3.2.1 -r1.3.2.2
--- dump.c      6 Jun 2007 14:29:29 -0000       1.3.2.1
+++ dump.c      8 Jun 2007 08:42:35 -0000       1.3.2.2
@@ -395,9 +395,9 @@
                        int on_update = (action >> 8) & 255;
                        int on_delete = action & 255;
 
-                       if (0 < on_delete && on_delete < NR_ACTIONS)
+                       if (0 < on_delete && on_delete < NR_ACTIONS && 
on_delete != 2 /* RESTRICT -- default */)
                                fprintf(toConsole, " ON DELETE %s", 
actions[on_delete]);
-                       if (0 < on_update && on_update < NR_ACTIONS)
+                       if (0 < on_update && on_update < NR_ACTIONS && 
on_delete != 2 /* RESTRICT -- default */)
                                fprintf(toConsole, " ON UPDATE %s", 
actions[on_update]);
                }
        }


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to