[Mysql-cocoa-users] MCPConnection upgrade
Brought to you by:
sergecohen
|
From: Lutin L. <in...@lu...> - 2004-08-14 20:50:52
|
Hi,
I'm thinking about an implementation of MCPConnection, but I'm afraid
to touch the framework source code.
I usually need to have a detailed reporte about errors after each of my
queries, so I add these code after all queries (till I'm sure they'll
be OK in any circumstances) :
if ([[connectMySQL getLastErrorMessage]
compare:@""]!=NSOrderedSame) {
NSLog (@"erreur MySQL !!");
NSLog(@"query : %@", myQueryString);
NSLog(@"error : %@", [connectMySQL getLastErrorMessage]);
}
Would it be possible (and easy to do by myself) to add a flag in
MCPConnection : BOOL errorReport
And when it's set to TRUE, to NSLog detyailed reports after each error ?
Can somebody point me where to look and how to do without ruining the
code ?
Thanks.
Camille
|