Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 76462
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: KNI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 4.019
  • 4.020
Fixed in: (no value)



Subject: [PATCH] memory leak on select if mysql_server_prepare is enabled
Hello. I found memory leak on select if mysql_server_prepare is enabled. See also http://bugs.mysql.com/bug.php?id=41815 Nick.
Subject: dbdimp.c.patch
--- dbdimp.c_orig 2012-04-10 10:02:09.000000000 +0300 +++ dbdimp.c 2012-04-10 10:12:19.000000000 +0300 @@ -3490,7 +3490,8 @@ /** Store the result in the current statement handle */ DBIc_NUM_FIELDS(imp_sth)= mysql_num_fields(imp_sth->result); DBIc_ACTIVE_on(imp_sth); - imp_sth->done_desc= 0; + if (!imp_sth->use_server_side_prepare) + imp_sth->done_desc= 0; imp_sth->fetch_done= 0; } }