Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27091/src/backends/monet4
Modified Files:
sql_result.mx
Log Message:
fixed leak in dec_fromstr
When joining multiple tables (with join indices),
we make sure we first join on the foreign side (ie no more rows).
Also we rewrite join indices into selections.
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_result.mx,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- sql_result.mx 14 Dec 2007 14:10:26 -0000 1.74
+++ sql_result.mx 25 Dec 2007 21:34:30 -0000 1.75
@@ -339,7 +339,10 @@
GDKerror("decimal wrong format (%s)", p);
return NULL;
}
- r = (@1*)GDKmalloc(sizeof(@1));
+ r = df->ai->data;
+ if (!r)
+ r = (@1*)GDKmalloc(sizeof(@1));
+ df->ai->data = r;
if (neg)
*r = -res;
else
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins