aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerSupport.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-04-16 00:24:53 +0200
committerMax <post@wickenrode.com>2015-04-16 00:24:53 +0200
commit028f1ff9ac1e22db9abec6ea3838079a08aa471e (patch)
tree547215225796afb958a27e29f99eed0bb6e393ed /Source/SPServerSupport.h
parent8f27fbe9ca78b8258809d1266820095361b46a13 (diff)
downloadsequelpro-028f1ff9ac1e22db9abec6ea3838079a08aa471e.tar.gz
sequelpro-028f1ff9ac1e22db9abec6ea3838079a08aa471e.tar.bz2
sequelpro-028f1ff9ac1e22db9abec6ea3838079a08aa471e.zip
Restore detailed error messages for FK errors in MySQL 5.5+
Diffstat (limited to 'Source/SPServerSupport.h')
-rw-r--r--Source/SPServerSupport.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/SPServerSupport.h b/Source/SPServerSupport.h
index 8052ed90..e4551643 100644
--- a/Source/SPServerSupport.h
+++ b/Source/SPServerSupport.h
@@ -28,6 +28,11 @@
//
// More info at <https://github.com/sequelpro/sequelpro>
+typedef struct {
+ NSString *queryString;
+ NSUInteger columnIndex;
+} SPInnoDBStatusQueryFormat;
+
/**
* @class SPServerSupport SPServerSupport.h
*
@@ -79,6 +84,7 @@
BOOL supportsArchiveStorageEngine;
BOOL supportsCSVStorageEngine;
BOOL supportsQuotingEngineTypeInCreateSyntax;
+ BOOL supportsShowEngine;
// Triggers
BOOL supportsTriggers;
@@ -259,9 +265,19 @@
*/
@property (readonly) BOOL supportsFulltextOnInnoDB;
+/**
+ * @property supportsShowEngine Indicates whether the server supports the "SHOW ENGINE x {LOGS|STATUS}" query.
+ */
+@property (readonly) BOOL supportsShowEngine;
+
- (id)initWithMajorVersion:(NSInteger)majorVersion minor:(NSInteger)minorVersion release:(NSInteger)releaseVersion;
- (void)evaluate;
- (BOOL)isEqualToOrGreaterThanMajorVersion:(NSInteger)majorVersion minor:(NSInteger)minorVersion release:(NSInteger)releaseVersion;
+/**
+ * @return The correct query to get the InnoDB engine status. queryString is nil for unsupported versions.
+ * The columnIndex tells the index of the column (starting with 0) in which the status text is returned.
+ */
+- (SPInnoDBStatusQueryFormat)innoDBStatusQuery;
@end