Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26724
Modified Files:
sql_optimizer.mx
Log Message:
Fixing a debugging support glitch
Index: sql_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_optimizer.mx,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -d -r1.240 -r1.241
--- sql_optimizer.mx 19 Dec 2009 09:29:55 -0000 1.240
+++ sql_optimizer.mx 31 Dec 2009 17:06:21 -0000 1.241
@@ -598,12 +598,14 @@
str optimizer;
MalBlkPtr mb;
ValRecord src;
+ mvc *m;
insertSymbol(c->nspace, c->curprg);
trimMalBlk(c->curprg->def);
c->blkmode = 0;
mb = c->curprg->def;
chkProgram(c->nspace, mb);
+ m = ((mvc *) c->state[MAL_SCENARIO_OPTIMIZE]);
#ifdef _SQL_OPTIMIZER_DEBUG
stream_printf(GDKout, "ADD QUERY TO CACHE\n");
printFunction(GDKout,mb,0,LIST_MAL_ALL);
@@ -628,6 +630,8 @@
stack_set_var(be->mvc, "optimizer", VALset(&src, TYPE_str,
setOptimizers(optimizer)));
addOptimizers(c,mb);
SQLgetStatistics(c,(mvc *) c->state[MAL_SCENARIO_OPTIMIZE],mb);
+ if ( m->emod & mod_debug )
+ addtoMalBlkHistory(mb,"getStatistics");
optimizeMALBlock(c,mb);
/* time to execute the optimizers */
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins