Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16373/src/backends/monet5

Modified Files:
        sql_result.mx 
Log Message:
handle topn a bit earlier (before the projection join) 

In union distinct we use TID's where possible


U sql_result.mx
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_result.mx,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- sql_result.mx       28 Dec 2008 22:37:42 -0000      1.104
+++ sql_result.mx       29 Dec 2008 21:30:07 -0000      1.105
@@ -359,7 +359,8 @@
        (void)quote;
        if (type == TYPE_str) {
                sql_column *col = (sql_column*)c->extra;
-               if (col->type.digits > 0 && e-s > col->type.digits)
+
+               if (col->type.digits > 0 && (unsigned)(e-s) > col->type.digits)
                        return NULL;
                return TABLETstrFrStr(c, s, e);
        }


------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to