aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/c_src/odbcserver.c
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-28 14:49:51 +0100
committerFredrik Gustafsson <[email protected]>2013-03-28 14:49:51 +0100
commit9754ff636fac43cc550c443e18f90afacf21344e (patch)
tree2c51b446ab0160d8b66cf56c83d3a43351379258 /lib/odbc/c_src/odbcserver.c
parentdbf9869acd684928e5f93ccf94ab5e972c22a732 (diff)
parenta8ca64098870e420f9f28f1d70433f45dc4ba3f9 (diff)
downloadotp-9754ff636fac43cc550c443e18f90afacf21344e.tar.gz
otp-9754ff636fac43cc550c443e18f90afacf21344e.tar.bz2
otp-9754ff636fac43cc550c443e18f90afacf21344e.zip
Merge branch 'sk/odbc64/OTP-10993' into maint
* sk/odbc64/OTP-10993: explain postgres pecularity for param query out parameters postgresql test case for 64bit bug for param_query rollback disabling scrollable_cursors for oracle drop procedure after testing set scrollable_cursors to off for oracle driver drop procedure after testing test case for stored procedure with (32bit) integer out params on 64bit platform odbcserver 64bit bug for SQL_C_SLONG type
Diffstat (limited to 'lib/odbc/c_src/odbcserver.c')
-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),