aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerSupport.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-02 16:17:22 +0100
committerMax <post@wickenrode.com>2015-01-02 16:17:22 +0100
commit30ffc7c4d6158e1210b2463dddb62e627ca410db (patch)
tree436d33198576f1c719aad0060312da3df3eee488 /Source/SPServerSupport.m
parentee588049b5a7f755d788b983dc8cabce24453641 (diff)
downloadsequelpro-30ffc7c4d6158e1210b2463dddb62e627ca410db.tar.gz
sequelpro-30ffc7c4d6158e1210b2463dddb62e627ca410db.tar.bz2
sequelpro-30ffc7c4d6158e1210b2463dddb62e627ca410db.zip
Some internal addtions for mysql event support
(Also deduplicated some code)
Diffstat (limited to 'Source/SPServerSupport.m')
-rw-r--r--Source/SPServerSupport.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPServerSupport.m b/Source/SPServerSupport.m
index 991a9fd3..bf74a61e 100644
--- a/Source/SPServerSupport.m
+++ b/Source/SPServerSupport.m
@@ -69,6 +69,7 @@
@synthesize supportsArchiveStorageEngine;
@synthesize supportsCSVStorageEngine;
@synthesize supportsTriggers;
+@synthesize supportsEvents;
@synthesize supportsIndexKeyBlockSize;
@synthesize supportsQuotingEngineTypeInCreateSyntax;
@synthesize supportsFractionalSeconds;
@@ -185,6 +186,9 @@
// Support for triggers wasn't added until MySQL 5.0.2
supportsTriggers = [self isEqualToOrGreaterThanMajorVersion:5 minor:0 release:2];
+
+ // Support for events wasn't added until MySQL 5.1.6
+ supportsEvents = [self isEqualToOrGreaterThanMajorVersion:5 minor:1 release:6];
// Support for specifying an index's key block size wasn't added until MySQL 5.1.10
supportsIndexKeyBlockSize = [self isEqualToOrGreaterThanMajorVersion:5 minor:1 release:10];
@@ -280,6 +284,7 @@
supportsArchiveStorageEngine = NO;
supportsCSVStorageEngine = NO;
supportsTriggers = NO;
+ supportsEvents = NO;
supportsIndexKeyBlockSize = NO;
supportsQuotingEngineTypeInCreateSyntax = NO;
supportsFractionalSeconds = NO;