Re: Prepared Statements not getting closed
Nevermind, you have leak in code: res never gets deleted, this is why connection is actually not closed.
I kind of agree that logically after pstmt->close(); statement may be expected to be closed on MySQL Server, but you will not be able to use 'res' after that.
So statement will not be closed until you delete result set, this is also quite valid logic, so no bug here.
Subject
Views
Written By
Posted
12542
August 02, 2012 02:19PM
3600
August 03, 2012 01:29AM
3379
August 03, 2012 06:29AM
2842
August 03, 2012 08:17AM
3863
August 03, 2012 01:00PM
2772
August 08, 2012 10:58AM
2719
August 08, 2012 12:29PM
Re: Prepared Statements not getting closed
2763
August 08, 2012 02:33PM
2543
August 09, 2012 07:31AM
2633
August 09, 2012 08:31AM
2462
August 10, 2012 01:49PM
2691
August 30, 2012 10:41AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.