Update of /cvsroot/monetdb/sql/src/storage
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1379/src/storage

Modified Files:
      Tag: Aug2009
        store.mx 
Log Message:
make sure we reset null/default and unique flags in columns when transactions 
fail


U store.mx
Index: store.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v
retrieving revision 1.33.2.3
retrieving revision 1.33.2.4
diff -u -d -r1.33.2.3 -r1.33.2.4
--- store.mx    12 Aug 2009 11:25:36 -0000      1.33.2.3
+++ store.mx    14 Sep 2009 05:31:59 -0000      1.33.2.4
@@ -2584,6 +2584,14 @@
                if (isTable(fc->t)) {
                        store_funcs.destroy_col(NULL, fc);
                        store_funcs.dup_col(tr, pfc, fc);
+
+                       fc->null = pfc->null;
+                       fc->unique = pfc->unique;
+                       if (fc->def) 
+                               _DELETE(fc->def);
+                       fc->def = NULL;
+                       if (pfc->def)
+                               fc->def = _strdup(pfc->def);
                }
                fc->base.wtime = fc->base.rtime = 0;
        }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to