aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m
index dd84ff55..0b9651f6 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Databases & Tables.m
@@ -63,11 +63,13 @@
if (encodingChangeRequired) {
NSString *theErrorString = [self lastErrorMessage];
NSUInteger theErrorID = [self lastErrorID];
+ NSString *theSqlstate = [self lastSqlstate];
[self restoreStoredEncoding];
[self _updateLastErrorMessage:theErrorString];
[self _updateLastErrorID:theErrorID];
+ [self _updateLastSqlstate:theSqlstate];
}
return NO;