You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2023/03/20 17:22:19 UTC
svn commit: r1908583 - in /apr/apr-util/branches/1.7.x: ./ dbd/apr_dbd_odbc.c
Author: ylavic
Date: Mon Mar 20 17:22:18 2023
New Revision: 1908583
URL: http://svn.apache.org/viewvc?rev=1908583&view=rev
Log:
dbd_odbc: Fix SQL_INTEGER allocation size.
Merges r1908501 from ^/apr/apr/trunk.
Submitted by: ylavic
Modified:
apr/apr-util/branches/1.7.x/ (props changed)
apr/apr-util/branches/1.7.x/dbd/apr_dbd_odbc.c
Propchange: apr/apr-util/branches/1.7.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1908501
Modified: apr/apr-util/branches/1.7.x/dbd/apr_dbd_odbc.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/dbd/apr_dbd_odbc.c?rev=1908583&r1=1908582&r2=1908583&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/dbd/apr_dbd_odbc.c (original)
+++ apr/apr-util/branches/1.7.x/dbd/apr_dbd_odbc.c Mon Mar 20 17:22:18 2023
@@ -582,8 +582,8 @@ static SQLRETURN odbc_bind_param(apr_poo
(textmode ? atoi(args[*argp]) : *(short *)args[*argp]);
break;
case SQL_INTEGER:
- ptr = apr_palloc(pool, sizeof(int));
- len = sizeof(int);
+ ptr = apr_palloc(pool, sizeof(long));
+ len = sizeof(long);
*(long *)ptr =
(textmode ? atol(args[*argp]) : *(long *)args[*argp]);
break;