Bug 47932 - apr_dbd_mysql: max_length field of MYSQL_FIELD struct is not populated when using prepared statements
Summary: apr_dbd_mysql: max_length field of MYSQL_FIELD struct is not populated when ...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 23:51 UTC by Marko Kevac
Modified: 2009-10-01 23:51 UTC (History)
0 users



Attachments
apr_dbd_mysql_length.patch (718 bytes, patch)
2009-10-01 23:51 UTC, Marko Kevac
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Kevac 2009-10-01 23:51:01 UTC
max_length field of  MYSQL_FIELD struct is not populated when using prepared statements. This is because according to http://dev.mysql.com/doc/refman/5.0/en/c-api-datatypes.html in order for this field to be populated, additional parameter should be provided before preparing statement.

This patch passes needed parameter.
Comment 1 Marko Kevac 2009-10-01 23:51:38 UTC
Created attachment 24335 [details]
apr_dbd_mysql_length.patch