Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2962/src/server
Modified Files:
rel_select.mx
Log Message:
propagated changes of Thursday Jul 10 2008 - Monday Jul 14 2008
from the SQL_2-24 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/07/10 - nielsnes: src/server/rel_select.mx,1.75.2.3
fixed support for IS NULL in selection
fixed bug in groupby and selection with constants (old bin alg only)
fixed bug in range join rewrites
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: rel_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_select.mx,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- rel_select.mx 23 Jun 2008 21:27:05 -0000 1.79
+++ rel_select.mx 14 Jul 2008 07:56:59 -0000 1.80
@@ -2146,8 +2146,8 @@
return rel_binop_(sql, e1, e2, NULL, "and");
}
}
- case SQL_NULL:
- case SQL_NOT_NULL:
+ case SQL_IS_NULL:
+ case SQL_IS_NOT_NULL:
/* is (NOT) NULL */
{
sql_exp *le = rel_value_exp(sql, rel, sc->data.sym, f, ek);
@@ -2155,7 +2155,7 @@
if (!le)
return NULL;
le = rel_unop_(sql, le, NULL, "isnull");
- if (sc->token != SQL_NULL)
+ if (sc->token != SQL_IS_NULL)
le = rel_unop_(sql, le, NULL, "not");
return le;
}
@@ -2446,8 +2446,8 @@
}
return rel;
}
- case SQL_NULL:
- case SQL_NOT_NULL:
+ case SQL_IS_NULL:
+ case SQL_IS_NOT_NULL:
/* is (NOT) NULL */
{
sql_exp *re, *le = rel_value_exp(sql, &rel, sc->data.sym, f,
ek);
@@ -2455,7 +2455,7 @@
if (!le)
return NULL;
le = rel_unop_(sql, le, NULL, "isnull");
- if (sc->token == SQL_NULL)
+ if (sc->token == SQL_IS_NULL)
re = exp_atom_bool(1);
else
re = exp_atom_bool(0);
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins