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 18:27:24 UTC
svn commit: r1908586 - in /apr/apr-util/branches/1.6.x: ./ dbd/apr_dbd_odbc.c
Author: ylavic
Date: Mon Mar 20 18:27:24 2023
New Revision: 1908586
URL: http://svn.apache.org/viewvc?rev=1908586&view=rev
Log:
dbd_odbc: Fix SQL_INTEGER allocation size.
Merges r1908501 from trunk.
Merges r1908583 from ^/apr/apr-util/branches/1.7.x.
Submitted by: ylavic
Modified:
apr/apr-util/branches/1.6.x/ (props changed)
apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c
Propchange: apr/apr-util/branches/1.6.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1908501
Merged /apr/apr-util/branches/1.7.x:r1908583
Modified: apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c?rev=1908586&r1=1908585&r2=1908586&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c (original)
+++ apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c Mon Mar 20 18:27:24 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;