Bug 47932

Summary: apr_dbd_mysql: max_length field of MYSQL_FIELD struct is not populated when using prepared statements
Product: APR Reporter: Marko Kevac <mkevac>
Component: APR-utilAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: apr_dbd_mysql_length.patch

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