Changeset: a615d88e841a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a615d88e841a
Modified Files:
        monetdb5/modules/atoms/str.c
Branch: txtsim
Log Message:

str_icontains returns True if found, versus prev str_cmp which would return 0


diffs (15 lines):

diff --git a/monetdb5/modules/atoms/str.c b/monetdb5/modules/atoms/str.c
--- a/monetdb5/modules/atoms/str.c
+++ b/monetdb5/modules/atoms/str.c
@@ -5124,9 +5124,9 @@ do_string_select(BAT *bn, BAT *b, BAT *s
                timeoffset = (qry_ctx->starttime && qry_ctx->querytimeout) ? 
(qry_ctx->starttime + qry_ctx->querytimeout) : 0;
 
        if (anti) /* keep nulls ? (use false for now) */
-               scanloop(v && *v != '\200' && str_cmp(v, key, klen) != 0, 
false);
+               scanloop(v && *v != '\200' && str_cmp(v, key, klen) == 0, 
false);
        else
-               scanloop(v && *v != '\200' && str_cmp(v, key, klen) == 0, 
false);
+               scanloop(v && *v != '\200' && str_cmp(v, key, klen) != 0, 
false);
 
 bailout:
        bat_iterator_end(&bi);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to