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

Modified Files:
        sql_rel2bin.mx 
Log Message:
propagated changes of Tuesday Aug 18 2009
from the Aug2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/08/18 - nielsnes: src/server/sql_rel2bin.mx,1.137.2.2
fix performance problem with foreign key checking (hash computation)
fixed crash in updates
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_rel2bin.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_rel2bin.mx,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- sql_rel2bin.mx      4 Aug 2009 07:24:36 -0000       1.138
+++ sql_rel2bin.mx      18 Aug 2009 11:41:23 -0000      1.139
@@ -629,7 +629,7 @@
 {
        sql_subtype *it, *wrd;
        stmt *h = NULL;
-       stmt *bits = stmt_atom_int(1 + ((sizeof(wrd)*8)-1)/(list_length(l)));
+       stmt *bits = stmt_atom_int(1 + ((sizeof(wrd)*8)-1)/(list_length(l)+1));
        node *icn;
 
        it = sql_bind_localtype("int");
@@ -665,7 +665,7 @@
        node *m;
        sql_subtype *it, *wrd;
        stmt *h = NULL;
-       stmt *bits = stmt_atom_int(1 + ((sizeof(wrd)*8)-1)/(list_length(l)));
+       stmt *bits = stmt_atom_int(1 + ((sizeof(wrd)*8)-1)/(list_length(l)+1));
        stmt *o = NULL;
 
        it = sql_bind_localtype("int");


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