diff options
author | mltownsend <mltownsend@gmail.com> | 2008-11-10 19:56:30 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2008-11-10 19:56:30 +0000 |
commit | c8146f9c28da66f02d47537e505a70725fb0c2b4 (patch) | |
tree | f967e1cadc654ea262f5fa7402572fdc2482d60d /CMMCPConnection.m | |
parent | 87173093000bc5c36962451cc3e58c9aaac5ab50 (diff) | |
download | sequelpro-c8146f9c28da66f02d47537e505a70725fb0c2b4.tar.gz sequelpro-c8146f9c28da66f02d47537e505a70725fb0c2b4.tar.bz2 sequelpro-c8146f9c28da66f02d47537e505a70725fb0c2b4.zip |
New XCode project
Diffstat (limited to 'CMMCPConnection.m')
-rw-r--r-- | CMMCPConnection.m | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/CMMCPConnection.m b/CMMCPConnection.m index 1e022e40..a8ae8dac 100644 --- a/CMMCPConnection.m +++ b/CMMCPConnection.m @@ -103,14 +103,14 @@ modified version of queryString to be used in sequel-pro */ { - CMMCPResult *theResult; - const char *theCQuery = [self cStringFromString:query]; - int theQueryCode; + CMMCPResult *theResult; + const char *theCQuery = [self cStringFromString:query]; + int theQueryCode; //[DIFF]: check connection - if ( ![self checkConnection] ) { - NSLog(@"Connection was gone, but should be reestablished now!"); - } + if ( ![self checkConnection] ) { + NSLog(@"Connection was gone, but should be reestablished now!"); + } //end [DIFF] //[DIFF]: inform the delegate about the query @@ -127,18 +127,18 @@ modified version of queryString to be used in sequel-pro else { return nil; } - } - else { -// NSLog (@"Problem in queryString error code is : %d, query is : %s -in ObjC : %@-\n", theQueryCode, theCQuery, query); -// NSLog(@"Error message is : %@\n", [self getLastErrorMessage]); -// theResult = [theResult init]; // Old version... -// theResult = nil; + } + else { +// NSLog (@"Problem in queryString error code is : %d, query is : %s -in ObjC : %@-\n", theQueryCode, theCQuery, query); +// NSLog(@"Error message is : %@\n", [self getLastErrorMessage]); +// theResult = [theResult init]; // Old version... +// theResult = nil; //[DIFF]: inform the delegate about errors if ( delegate && [delegate respondsToSelector:@selector(queryGaveError:)] ) [delegate queryGaveError:[self getLastErrorMessage]]; //end [DIFF] return nil; - } + } return [theResult autorelease]; } @@ -147,7 +147,7 @@ modified version of queryString to be used in sequel-pro sets the delegate */ { - delegate = object; + delegate = object; } |