aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatoshi Kinoshita <[email protected]>2012-11-01 14:56:14 +0900
committerFredrik Gustafsson <[email protected]>2013-03-27 16:47:51 +0100
commit0555a3a947c3b63028daf1c4314c4d6bd4066732 (patch)
tree2ba4a74f7f9d0ad83574827e7e00d5d2a34bf62d
parentca333ac936081cf39137bb657383c4f06ad809d3 (diff)
downloadotp-0555a3a947c3b63028daf1c4314c4d6bd4066732.tar.gz
otp-0555a3a947c3b63028daf1c4314c4d6bd4066732.tar.bz2
otp-0555a3a947c3b63028daf1c4314c4d6bd4066732.zip
odbcserver 64bit bug for SQL_C_SLONG type
-rw-r--r--lib/odbc/c_src/odbcserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c
index a6b3de6e48..5730e20774 100644
--- a/lib/odbc/c_src/odbcserver.c
+++ b/lib/odbc/c_src/odbcserver.c
@@ -1222,7 +1222,7 @@ static db_result_msg encode_out_params(db_state *state,
(column.type.strlen_or_indptr_array[j]));
break;
case SQL_C_SLONG:
- ei_x_encode_long(&dynamic_buffer(state), ((long*)values)[j]);
+ ei_x_encode_long(&dynamic_buffer(state), ((SQLINTEGER*)values)[j]);
break;
case SQL_C_DOUBLE:
ei_x_encode_double(&dynamic_buffer(state),