Re: [Mysql-cocoa-users] Method to expose MYSQL pointer
Brought to you by:
sergecohen
|
From: Serge C. <ser...@us...> - 2004-09-06 21:22:04
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Aaron;=0D =0D Indeed I'd rather not provide the pointer to the connection directly... =0D= just because this breaks the object concept and if some one deadly =0D needs it, the derivation solution (that you use) is still there.=0D Instead I can propose to have an interface to set this kind of =0D parameters directly from the object.=0D I have to check exactly what should be 'settable' and which interface =0D= will be correct with that (trying to avoid having too many functions =0D for that, maybe some kind of -setParameter:forKey: message).=0D =0D If other users are similar requirements or have preferences concerning =0D= the interface to these kind of setting, please answer (to the list so - =0D= - -if necessary- we can have a discution on that).=0D =0D Serge.=0D =0D PS: Aaron, sorry I sent you the mail from a wrong mail account, please =0D= if you answer me use the sourceforge mail account, and don't reply =0D directly to the previous mail. Thanks.=0D =0D Le 4 sept. 04, =E0 03:47, Aaron Jacobs a =E9crit :=0D =0D > I've run across a situation where it would be very unfortunate for my =0D= > application to automatically and silently re-establish its connection =0D= > to the MySQL server if it is lost. The only way I've found to disable = =0D > this behavior is to set the 'reconnect' member of the MYSQL structure =0D= > to zero, rather than the default of one. So what I need is a method =0D= > in MCPConnection that simply returns mConnection so that I can set the = =0D > flag. For now I'll make a subclass of MCPConnection since mConnection = =0D > is protected, but Serge do you think it would be possible to get such =0D= > a method officially supported?=0D >=0D > Thanks,=0D > Aaron=0D >=0D *******************************************=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D *******************************************=0D =0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFBPNTy5EPeG5y7WPsRAtTMAJ94ccaejFmam0EZIit++eoYd9mWTQCgkAKs 26hTqH7QqWdTFQGyIO8bZ34=3D =3DIARO -----END PGP SIGNATURE----- |