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

Modified Files:
      Tag: Aug2009
        sql_mvc.mx 
Log Message:
make sure we clear the cache after errors


U sql_mvc.mx
Index: sql_mvc.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_mvc.mx,v
retrieving revision 1.223
retrieving revision 1.223.2.1
diff -u -d -r1.223 -r1.223.2.1
--- sql_mvc.mx  25 Jul 2009 22:08:38 -0000      1.223
+++ sql_mvc.mx  6 Aug 2009 17:36:21 -0000       1.223.2.1
@@ -367,12 +367,12 @@
 void
 mvc_trans(mvc *m)
 {
-       int schema_changed = 0;
+       int schema_changed = 0, err = m->session->status;
        assert(!m->session->active);    /* can only start a new transaction */
 
        store_lock();
        schema_changed = sql_trans_begin(m->session);
-       if (m->cache && (schema_changed || m->qc->id > 10000)){
+       if (m->cache && (schema_changed || m->qc->id > 10000 || err)){
                if (m->qc)
                        qc_destroy(m->qc);
                m->qc = qc_create(m->clientid);


------------------------------------------------------------------------------
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