diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-25 01:13:12 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-25 01:13:12 +0000 |
commit | 32e858b26923b371a93e800687a13edf1254e445 (patch) | |
tree | ff2bac08381f0bd54e01c2f3f756c9fe5a2e2507 /Source/SPDatabaseData.m | |
parent | 5061643c1bf92a3583e4ede059951e1f17befac9 (diff) | |
download | sequelpro-32e858b26923b371a93e800687a13edf1254e445.tar.gz sequelpro-32e858b26923b371a93e800687a13edf1254e445.tar.bz2 sequelpro-32e858b26923b371a93e800687a13edf1254e445.zip |
- Make [MCPConnection getLastErrorMessage] more consistent by always returning nil if no error occurred (previously a blank string was returned most of the time)
- Add a new (BOOL)[MCPConnection queryErrored] method, changing all error message checks to use it for clarity
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r-- | Source/SPDatabaseData.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m index 4e40f998..8c4935d9 100644 --- a/Source/SPDatabaseData.m +++ b/Source/SPDatabaseData.m @@ -433,8 +433,7 @@ const SPDatabaseCharSets charsets[] = MCPResult *result = [connection queryString:query]; - // Log any errors - if ([[connection getLastErrorMessage] isEqualToString:@""]) { + if (![connection queryErrored]) { [result dataSeek:0]; for (NSInteger i = 0; i < [result numOfRows]; i++) |