[Mysql-cocoa-users] Method to expose MYSQL pointer
Brought to you by:
sergecohen
From: Aaron J. <aj...@ed...> - 2004-09-04 01:47:52
|
I've run across a situation where it would be very unfortunate for my application to automatically and silently re-establish its connection to the MySQL server if it is lost. The only way I've found to disable this behavior is to set the 'reconnect' member of the MYSQL structure to zero, rather than the default of one. So what I need is a method in MCPConnection that simply returns mConnection so that I can set the flag. For now I'll make a subclass of MCPConnection since mConnection is protected, but Serge do you think it would be possible to get such a method officially supported? Thanks, Aaron |