mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 01:20:31 -04:00
- encode_out_params should perform cast using SQL_INTEGER* rather than long*. Submitted by: Joseph Wayne Norton <norton@lovely.email.ne.jp> on erlang-bugs Feature safe: yes
14 lines
500 B
C
14 lines
500 B
C
|
|
$FreeBSD$
|
|
|
|
--- lib/odbc/c_src/odbcserver.c.orig
|
|
+++ lib/odbc/c_src/odbcserver.c
|
|
@@ -1150,7 +1150,7 @@
|
|
(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),
|