Changeset: becef721844e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=becef721844e
Modified Files:
        sql/server/rel_bin.c
Branch: Aug2011
Log Message:

fixed bug in in/not in handling


diffs (14 lines):

diff --git a/sql/server/rel_bin.c b/sql/server/rel_bin.c
--- a/sql/server/rel_bin.c
+++ b/sql/server/rel_bin.c
@@ -200,7 +200,9 @@ handle_in_exps( mvc *sql, sql_exp *ce, l
 
        if (c->nrcols == 0) {
                sql_subtype *bt = sql_bind_localtype("bit");
-               sql_subfunc *cmp = sql_bind_func(sql->sa, sql->session->schema, 
"=", tail_type(c), tail_type(c));
+               sql_subfunc *cmp = (in)
+                       ?sql_bind_func(sql->sa, sql->session->schema, "=", 
tail_type(c), tail_type(c))
+                       :sql_bind_func(sql->sa, sql->session->schema, "!=", 
tail_type(c), tail_type(c));
                sql_subfunc *a = (in)?sql_bind_func(sql->sa, 
sql->session->schema, "or", bt, bt)
                                     :sql_bind_func(sql->sa, 
sql->session->schema, "and", bt, bt);
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to