Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4061/src/backends/monet5
Modified Files:
Tag: GDK-2
sql.mx
Log Message:
fix bug in not_unique (ie need to compare first with second (not also with the
first (that will allways match, which we don't want in a key check))
Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.230.2.1
retrieving revision 1.230.2.2
diff -u -d -r1.230.2.1 -r1.230.2.2
--- sql.mx 12 Aug 2007 17:42:29 -0000 1.230.2.1
+++ sql.mx 12 Aug 2007 19:38:42 -0000 1.230.2.2
@@ -1648,7 +1648,7 @@
BUN p,q;
oid c = *(oid*)Tloc(b, BUNfirst(b));
- for(p=BUNfirst(b), q=BUNlast(b);p<q;p++) {
+ for(p=BUNfirst(b)+1, q=BUNlast(b);p<q;p++) {
oid v = *(oid*)Tloc(b,p);
if (v<=c) {
*ret = TRUE;
@@ -1700,7 +1700,6 @@
}
}
BATsetcount(dst, r-f);
- dst->T->heap.free = tailsize(dst, BATcount(dst));
BATkey(BATmirror(dst), 0);
dst->tsorted = 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins