We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a996a55 commit 0a699bfCopy full SHA for 0a699bf
driver/mysql_ps_resultset.cpp
@@ -253,7 +253,10 @@ void
253
MySQL_Prepared_ResultSet::closeIntern()
254
{
255
CPP_ENTER("MySQL_Prepared_ResultSet::closeIntern");
256
- //if this is the only one, free result
+ //We nee here to check how many MySQL_Prepared_ResultSet instances
257
+ //exist. Since each one of them has a result_bind, we can use his use_cont
258
+ //to check if it equals 2 (1 here + 1 on MySQL_Prepared_Statement (parent))
259
+ //Only on this case, we can call proxy->stmt_free_result();
260
if (result_bind.use_count() == 2)
261
proxy->stmt_free_result();
262
is_valid = false;
0 commit comments