Leak with prepared statements and mysql_server_prepare=1
Mika Raento <[email protected]> Thu, 03 May 2007 14:20:37 +0300
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Hiya
Bug #27046 http://bugs.mysql.com/bug.php?id=27046 makes
mysql_server_prepare=1 unusable, because of the statement handle leak. I
added a comment to the bug with a possible fix - basically adding
mysql_stmt_close(imp_sth->stmt) to dbd_st_finish. It does fix the most
basic case and passes all tests.
What I don't quite get is why the non-mysql_server_prepare codepath
doesn't leak statements, as I don't see it releasing them either. Maybe
they are automatically re-used somehow?
Mika
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]