apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevac Marko <ma...@kevac.org>
Subject Re: [PATCH] fix for max_length field to be populated for prepared statements
Date Sat, 10 Oct 2009 06:55:54 GMT
Well, yes. It is not used in apr_dbd_mysql.

For our project we are using apr_dbd, which don't have enough features
yet for our needs.

For example, we are using information from MYSQL_FIELD structure,
which, again, is not available from apr_dbd.h functions. Anyway, with
some dark "hack" magic one can access it (of course in non-portable

Variable max_length in MYSQL_FIELD is not populated for prepared
statements without flag in patch. This is why we need it.

Maybe this violates some kind of "not needed feature" rule. If so,
than what is your advice? Thanks.

On Sat, Oct 10, 2009 at 7:29 AM, Bojan Smojver <bojan@rexursive.com> wrote:
> On Thu, 2009-10-01 at 14:20 +0400, Kevac Marko wrote:
>> Without this attribute set, max_length field is not filled for
>> prepared statements.
> I'm not seeing use of max_length in the driver. Can you elaborate a bit
> more what this is for?
> >From what I can see we rely on buffer_length for prepared stuff, no?
> --
> Bojan

Marko Kevac
Sent from Moscow, Mow, Russia

View raw message