Fix 64-bit bug in odbcserver application:

- 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
This commit is contained in:
Jimmy Olgeni 2012-11-05 14:53:00 +00:00
parent 806e5cd7a0
commit 30a4e350be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307013
2 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= 15.b.02
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \

View file

@ -0,0 +1,14 @@
$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),