From: Patrick Galbraith Date: May 9 2011 6:24pm Subject: DBD::mysql 4.019 Released List-Archive: http://lists.mysql.com/perl/4407 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Dear Perl and MySQL enthusiasts, I=92m pleased to announce the release of DBD::mysql 4.019. I=92m especially pleased because there are some new enhancements and features that have been provided by contributions from the community: * Asynchronous support, added by Rob Hoelz. This is a new feature to DBD::mysql that takes advantage of libmysql=92s asynchronous functions (see Jan=92s article from 2008 http://jan.kneschke.de/2008/9/9/async-mysql-queries-with-c-api/) . From the DBD::mysql documentation: You can make a single asynchronous query per MySQL connection; this allows you to submit a long-running query to the server and have an event loop inform you when it=92s ready. An asynchronous query is started by either setting the =91async=92 attribute to a true value in the DBI do() method, or in the DBI prepare() method. Statements created with async set to true in prepare always run their queries asynchronously when DBI execute() is called. The driver also offers three additional methods: mysql_async_result, mysql_async_ready(), and mysql_fd. mysql_async_result() returns what do or execute would have; that is, the number of rows affected. mysql_async_ready() returns true if mysql_async_result() will not block, and zero otherwise. They both return undef if that handle is not currently running an asynchronous query. mysql_fd returns the file descriptor number for the MySQL connection; you can use this in an event loop. use feature 'say'; $dbh->do('SELECT SLEEP(10)', { async =3D> 1 }); until($dbh->mysql_async_ready) { say 'not ready yet!'; sleep 1; } my $rows =3D $dbh->mysql_async_result; * Enable environment variables for installation options from Amiri Barksdale. This is a feature that makes installation easier. For instance, you can set: export DBD_MYSQL_TESTDB=3Dtest export DBD_MYSQL_TESTHOST=3Dlocalhost export DBD_MYSQL_TESTPASSWORD=3Ds3kr1+ And then when you build and test DBD::mysql, the installation process will automatically pick these values up. There are many more environment variables documented on the DBD::mysql POD * Other various cleanups, fix from Pedro Melo which fixed code from 4.018 that broke in newer versions of Perl * Cleanup of some warnings that persnickety compilers complained about It=92s great moving this project along, and I appreciate the patches and suggestions from the community! The code can be found at: http://search.cpan.org/~capttofu/DBD-mysql-4.019/lib/DBD/mysql.pm Or git clone https://github.com/CaptTofu/DBD-mysql