aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-03-05 03:36:32 +0100
committerMax <post@wickenrode.com>2014-03-05 03:36:32 +0100
commitb67728258595b7ce256ea50485ee6e6cb8137ac8 (patch)
treeeab934d5e0ddfd4a10b35760876d4e1b76c4d879 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h
parent5c0212a51d21f06f3beb62059b0b17c6ee1d8c91 (diff)
downloadsequelpro-b67728258595b7ce256ea50485ee6e6cb8137ac8.tar.gz
sequelpro-b67728258595b7ce256ea50485ee6e6cb8137ac8.tar.bz2
sequelpro-b67728258595b7ce256ea50485ee6e6cb8137ac8.zip
Add support for SQLSTATE
This commit adds the backend code to get the mysql SQLSTATE error code (to be used when displaying errors).
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h
index 4509fdc9..a595cfb2 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Querying & Preparation.h
@@ -56,6 +56,7 @@
- (BOOL)queryErrored;
- (NSString *)lastErrorMessage;
- (NSUInteger)lastErrorID;
+- (NSString *)lastSqlstate;
+ (BOOL)isErrorIDConnectionError:(NSUInteger)theErrorID;
// Query cancellation