Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22048/kernel
Modified Files:
batstr.mx
Log Message:
make sure string gunctions return something on empty strings too.
Index: batstr.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/batstr.mx,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- batstr.mx 21 Dec 2007 15:29:35 -0000 1.55
+++ batstr.mx 23 Dec 2007 11:47:48 -0000 1.56
@@ -236,7 +236,7 @@
BATloop(b, p, q) {
ptr h = BUNhead(bi,p);
x = (@3) BUNtail(bi,p);
- if (x== 0 || *x == 0 || strcmp(x,@3_nil)== 0)
+ if (x== 0 || strcmp(x,@3_nil)== 0)
y= int_nil;
else
@2(yp,x);
@@ -273,7 +273,7 @@
ptr h = BUNhead(bi,p);
x = (@3) BUNtail(bi,p);
- if (x== 0 || *x == 0 || strcmp(x,@3_nil)== 0)
+ if (x== 0 || strcmp(x,@3_nil)== 0)
y = (str)str_nil;
else
@2(yp,x);
@@ -317,7 +317,7 @@
ptr h = BUNhead(bi, p);
x = (str) BUNtail(bi, p);
- if (x == 0 || *x == 0 || strcmp(x, str_nil) == 0)
+ if (x == 0 || strcmp(x, str_nil) == 0)
y = bit_nil;
else
y = strcmp(x, *cst) @1 0;
@@ -568,7 +568,7 @@
ptr h = BUNhead(bi, p);
x = (str) BUNtail(bi, p);
- if (x == 0 || *x == 0 || strcmp(x, str_nil) == 0) {
+ if (x == 0 || strcmp(x, str_nil) == 0) {
y = (str)str_nil;
} else {
STRSubstitute(yp, xp, arg2, arg3, rep);
-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins