Rob Hoelz | 29 Apr 2011 17:46
Favicon
Gravatar

Fwd: Patch for DBD::mysql

Bumping and forwarding to mailing list.

Begin forwarded message:

> From: Rob Hoelz <rhoelz <at> inoc.com>
> Date: April 21, 2011 3:26:17 PM CDT
> To: patg <at> patg.net
> Subject: Patch for DBD::mysql
> 
> Hello Patrick,
> 
> Attached is a patch for DBD::mysql that adds asynchronous query support
> on top to DBD-mysql-4.018.  It's pretty hefty (about 1500 lines), so
> please feel free to contact me if you have any questions or comments
> about the code, its formatting, or its acceptability into the DBD-mysql
> distribution.  Before you get started, I'd like to point out a few
> things about the asynchronous interface:
> 
> - It relies on mysql_send_query and mysql_read_query_result, which are
>  both undocumented, so the code could break with a future MySQL client
>  library.  However, all of the new code is conditionally compiled when
>  MYSQL_ASYNC is set to 1, so if Makefile.PL detects this and sets
>  MYSQL_ASYNC appropriately, it shouldn't be an issue.
> 
> - Asynchronous queries conflict with server-side prepared statements.
>  I don't know of a way around this, but I figured that it's an
>  acceptable comprimise for the time being.
> 
> - A bit of the code currently relies on poll.h, which may make it more
>  difficult to build this module on Win32.
(Continue reading)


Gmane