diff options
author | rowanbeentje <rowan@beent.je> | 2012-03-29 23:55:09 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-03-29 23:55:09 +0000 |
commit | 537a96297f236e2c41dd6d18ae317d2211a334a5 (patch) | |
tree | 094965db188cfb2ceb15210a864109cc2a750efd /Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m | |
parent | e611c3b44b57715a917563f897237fddcaf991c8 (diff) | |
download | sequelpro-537a96297f236e2c41dd6d18ae317d2211a334a5.tar.gz sequelpro-537a96297f236e2c41dd6d18ae317d2211a334a5.tar.bz2 sequelpro-537a96297f236e2c41dd6d18ae317d2211a334a5.zip |
- Fix SPMySQL warnings about delegate and proxy methods mixing synthesized getters and manually overridden setters
- Fix autoincrement ID retrieval in SPMySQL, addressing issues previewing rows when the setting for "Reload Table After: Adding a row" is not being used
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m')
-rw-r--r-- | Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m index 9b54029c..686be183 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.m @@ -330,6 +330,11 @@ NSString *theErrorMessage = [self _stringForCString:mysql_error(mySQLConnection)]; NSUInteger theErrorID = mysql_errno(mySQLConnection); + // Update the connection's stored insert ID if available + if (mySQLConnection->insert_id) { + lastQueryInsertID = mySQLConnection->insert_id; + } + // If the query was cancelled, override the error state if (lastQueryWasCancelled) { theErrorMessage = NSLocalizedString(@"Query cancelled.", @"Query cancelled error"); |