Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2012 14:53:00 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307013 - in head/lang/erlang: . files
Message-ID:  <201211051453.qA5Er0vd021987@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Mon Nov  5 14:53:00 2012
New Revision: 307013
URL: http://svnweb.freebsd.org/changeset/ports/307013

Log:
  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

Added:
  head/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c   (contents, props changed)
Modified:
  head/lang/erlang/Makefile

Modified: head/lang/erlang/Makefile
==============================================================================
--- head/lang/erlang/Makefile	Mon Nov  5 14:07:42 2012	(r307012)
+++ head/lang/erlang/Makefile	Mon Nov  5 14:53:00 2012	(r307013)
@@ -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		\

Added: head/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c	Mon Nov  5 14:53:00 2012	(r307013)
@@ -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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211051453.qA5Er0vd021987>