From 41e55d04032c0eefd39d74ffb73657b04fb821ec Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 6 Feb 2014 20:05:25 -0800 Subject: [PATCH] [master] type mismatch in ODBC DLZ driver 3732. [contrib] Fixed a type mismatch causing the ODBC DLZ driver to dump core on 64-bit systems. [RT #35324] --- CHANGES | 3 +++ contrib/dlz/drivers/dlz_odbc_driver.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index c596182538..f71fb1e14d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3732. [contrib] Fixed a type mismatch causing the ODBC DLZ + driver to dump core on 64-bit systems. [RT #35324] + 3731. [func] Added a "no-case-compress" ACL, which causes named to use case-insensitive compression (disabling change #3645) for specified diff --git a/contrib/dlz/drivers/dlz_odbc_driver.c b/contrib/dlz/drivers/dlz_odbc_driver.c index 283998d85e..75ac3ca3c8 100644 --- a/contrib/dlz/drivers/dlz_odbc_driver.c +++ b/contrib/dlz/drivers/dlz_odbc_driver.c @@ -734,7 +734,7 @@ odbc_get_resultset(const char *zone, const char *record, static isc_result_t odbc_getField(SQLHSTMT *stmnt, SQLSMALLINT field, char **data) { - SQLINTEGER size; + SQLLEN size; REQUIRE(data != NULL && *data == NULL); @@ -763,7 +763,7 @@ odbc_getManyFields(SQLHSTMT *stmnt, SQLSMALLINT startField, SQLSMALLINT endField, char **retData) { isc_result_t result; - SQLINTEGER size; + SQLLEN size; int totSize = 0; SQLSMALLINT i; int j = 0;