Update of /cvsroot/monetdb/sql/src/common
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13600/src/common
Modified Files:
Tag: Feb2009
sql_types.mx
Log Message:
first put math functions return doubles in the list (before the float
versions). This makes sure we convert decimals (when needed) to double
not float.
U sql_types.mx
Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.121.2.4
retrieving revision 1.121.2.5
diff -u -d -r1.121.2.4 -r1.121.2.5
--- sql_types.mx 27 Feb 2009 22:23:00 -0000 1.121.2.4
+++ sql_types.mx 17 Apr 2009 21:09:53 -0000 1.121.2.5
@@ -1435,7 +1435,7 @@
sql_create_func("scale_up", "calc", "*", *u, *t, *t,
SCALE_NONE);
}
- for (t = floats; t < dates; t++) {
+ for (t = dates-1; t >= floats; t--) {
sql_create_func("power", "mmath", "pow", *t, *t, *t, SCALE_FIX);
sql_create_func("floor", "mmath", "floor", *t, NULL, *t,
SCALE_FIX);
sql_create_func("ceil", "mmath", "ceil", *t, NULL, *t,
SCALE_FIX);
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins