From b67728258595b7ce256ea50485ee6e6cb8137ac8 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 5 Mar 2014 03:36:32 +0100 Subject: Add support for SQLSTATE This commit adds the backend code to get the mysql SQLSTATE error code (to be used when displaying errors). --- Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h') diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h index bf15d5b4..34b21043 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h @@ -104,6 +104,7 @@ // Error state for the last query or connection state NSUInteger queryErrorID; NSString *queryErrorMessage; + NSString *querySqlstate; // Query details unsigned long long lastQueryAffectedRowCount; -- cgit v1.2.3