Changeset: ae06f23df9b5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae06f23df9b5
Modified Files:
clients/odbc/driver/ODBCUtil.c
clients/odbc/driver/SQLGetInfo.c
Branch: Jan2014
Log Message:
Our truncate function in SQL is not the numeric kind.
This fixes bug 3431.
diffs (24 lines):
diff --git a/clients/odbc/driver/ODBCUtil.c b/clients/odbc/driver/ODBCUtil.c
--- a/clients/odbc/driver/ODBCUtil.c
+++ b/clients/odbc/driver/ODBCUtil.c
@@ -335,7 +335,7 @@ static struct scalars {
{"sin", 1, "\"sin\"(\1)", },
{"sqrt", 1, "\"sqrt\"(\1)", },
{"tan", 1, "\"tan\"(\1)", },
- {"truncate", 2, "\"truncate\"(\1,\2)", },
+ /* {"truncate", 2, "\"truncate\"(\1,\2)", }, */
{"current_date", 0, "\"current_date\"()", },
{"current_time", 0, "\"current_time\"()", },
{"current_time", 1, NULL, },
diff --git a/clients/odbc/driver/SQLGetInfo.c b/clients/odbc/driver/SQLGetInfo.c
--- a/clients/odbc/driver/SQLGetInfo.c
+++ b/clients/odbc/driver/SQLGetInfo.c
@@ -519,7 +519,7 @@ SQLGetInfo_(ODBCDbc *dbc,
SQL_FN_NUM_SIGN |
SQL_FN_NUM_SIN |
SQL_FN_NUM_SQRT |
- SQL_FN_NUM_TRUNCATE |
+ /* SQL_FN_NUM_TRUNCATE | */
SQL_FN_NUM_TAN;
len = sizeof(SQLUINTEGER);
break;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list