Changeset: 09561dab4526 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/09561dab4526
Modified Files:
clients/odbc/driver/SQLGetTypeInfo.c
Branch: Oct2020
Log Message:
Don't leak ODBC extension type SQL_HUGEINT if not explicitly requested.
diffs (14 lines):
diff --git a/clients/odbc/driver/SQLGetTypeInfo.c
b/clients/odbc/driver/SQLGetTypeInfo.c
--- a/clients/odbc/driver/SQLGetTypeInfo.c
+++ b/clients/odbc/driver/SQLGetTypeInfo.c
@@ -1148,6 +1148,10 @@ MNDBGetTypeInfo(ODBCStmt *stmt,
assert(t == types || t->data_type >= (t-1)->data_type);
if (DataType != SQL_ALL_TYPES && DataType != t->data_type)
continue;
+ if (DataType == SQL_ALL_TYPES &&
+ t->data_type == SQL_HUGEINT &&
+ !stmt->Dbc->allow_hugeint)
+ continue;
if (first) {
/* specify column types in first set of values */
i += snprintf(query + i, sizeof(query) - i,
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list