apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Please confirm the freetds bug in apr-util-1.4.1.tar.gz
Date Wed, 18 Jul 2012 12:03:35 GMT
On Wed, Jul 18, 2012 at 7:34 AM, Jeff Trawick <trawick@gmail.com> wrote:
> On Wed, Jul 18, 2012 at 4:38 AM, TROY.LIU „¢´º‚¥ <TROY.LIU@deltaww.com.cn> wrote:
>> Dear all,
>>
>>   I found a bug and don¡¯t know where to file it. Just send the mail to let
>> you know.
>
> Bugs can be filed at http://issues.apache.org/bugzilla/
>
> But in this case I can confirm the bug and will commit your fix shortly.

Committed now to trunk and to the 1.4.x and 1.5.x branches...

>
> Thanks!
>
>>
>> In the apr_dbd_freetds.c +630, function freetds_open:
>>
>>
>>
>> sql = apr_palloc (pool, sizeof (apr_dbd_t));  // should be  apr_pcalloc,
>> like apr_dbd_pgsql_open.c +1231
>>
>>
>>
>> if calls dbd_freetds_query after freetds_open,  it will fail.
>>
>> static int dbd_freetds_query(apr_dbd_t *sql, int *nrows, const char *query)
>>
>> {
>>
>>     if (sql->trans && sql->trans->errnum) {
>>
>>         return sql->trans->errnum;
>>
>> }
>>
>> ¡­
>>
>>
>>
>> Please confirm this issue.
>>
>>
>>
>> http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetds.c?view=markup
>>
>> http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c?view=markup
>>
>>
>>
>>
>>
>>
>>
>> Best Regards
>>
>> Chunwei Liu
>>
>>
>
>
>
> --
> Born in Roswell... married an alien...
> http://emptyhammock.com/



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Mime
View raw message