Update of /cvsroot/monetdb/sql/src/server
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv27124/src/server
Modified Files:
rel_bin.mx
Log Message:
propagated changes of Tuesday Aug 18 2009
from the Aug2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/08/18 - nielsnes: src/server/rel_bin.mx,1.87.2.3
fix performance problem with foreign key checking (hash computation)
fixed crash in updates
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: rel_bin.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_bin.mx,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- rel_bin.mx 17 Aug 2009 10:54:06 -0000 1.89
+++ rel_bin.mx 18 Aug 2009 11:41:19 -0000 1.90
@@ -1478,7 +1478,7 @@
sql_subtype *it = sql_bind_localtype("int");
sql_subtype *wrd = sql_bind_localtype("wrd");
stmt *h = NULL;
- stmt *bits = stmt_atom_int(1 +
((sizeof(wrd)*8)-1)/(list_length(i->columns)));
+ stmt *bits = stmt_atom_int(1 +
((sizeof(wrd)*8)-1)/(list_length(i->columns)+1));
sql_exp *e = en->data;
sql_exp *l = e->l;
stmt *idx = bin_find_column(sub, l->l, i->base.name);
@@ -2052,7 +2052,7 @@
{
node *m;
sql_subtype *it, *wrd;
- int bits = 1 + ((sizeof(wrd)*8)-1)/(list_length(i->columns));
+ int bits = 1 + ((sizeof(wrd)*8)-1)/(list_length(i->columns)+1);
stmt *h = NULL, *o = NULL;
if (list_length(i->columns) <= 1)
@@ -2820,7 +2820,7 @@
/* calculate new value */
node *m;
sql_subtype *it, *wrd;
- int bits = 1 + ((sizeof(wrd)*8)-1)/(list_length(i->columns));
+ int bits = 1 + ((sizeof(wrd)*8)-1)/(list_length(i->columns)+1);
stmt *h = NULL, *ts, *o = NULL;
if (list_length(i->columns) <= 1)
------------------------------------------------------------------------------
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