Update of /cvsroot/monetdb/sql/src/common
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24324/src/common
Modified Files:
Tag: SQL_2-18
sql_types.mx
Log Message:
fixed bugs
1774312 SQL: conversion from decimal to varchar error
1775550 SQL: implied conversion from numeric to varchar disconnect
First failed because of missing function (removed from the function list now)
second failed because incorrect conversion function was called. Now all
convertions to VARCHAR types are handled the same way.
Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.88
retrieving revision 1.88.2.1
diff -u -d -r1.88 -r1.88.2.1
--- sql_types.mx 23 May 2007 22:05:58 -0000 1.88
+++ sql_types.mx 16 Aug 2007 21:33:06 -0000 1.88.2.1
@@ -43,6 +43,7 @@
#define EC_CHAR 3
#define EC_STRING 4
#define EC_BLOB 5
+#define EC_VARCHAR(e) (e==EC_CHAR||e==EC_STRING)
#define EC_NUM 6
#define EC_INTERVAL 7
@@ -1386,10 +1387,8 @@
}
}
- for (t = decimals; t < dates; t++) {
- sql_create_func("truncate", "sql", "trunc", *t, INT, *t,
SCALE_NONE);
+ for (t = decimals; t < dates; t++)
sql_create_func("round", "sql", "round", *t, SHT, *t,
SCALE_NONE);
- }
for (t = numerical; t < end; t++) {
sql_type **u;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins