aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerSupport.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-10-08 18:59:17 +0000
committerstuconnolly <stuart02@gmail.com>2010-10-08 18:59:17 +0000
commitdeea4b3347eed9d145bffcb0baf75544f99b6f14 (patch)
tree75b52b60f51deeda5a35c9e543b29c97aa072bc0 /Source/SPServerSupport.m
parent76727f8d0e39fcdf1bdfc3bdccb7887265c2f615 (diff)
downloadsequelpro-deea4b3347eed9d145bffcb0baf75544f99b6f14.tar.gz
sequelpro-deea4b3347eed9d145bffcb0baf75544f99b6f14.tar.bz2
sequelpro-deea4b3347eed9d145bffcb0baf75544f99b6f14.zip
Add support for adding SPATIAL indexes on MyISAM tables. Also, update Localizable.strings.
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 3f8227d9..0b3ba79d 100644
--- a/Source/SPServerSupport.m
+++ b/Source/SPServerSupport.m
@@ -45,6 +45,7 @@
@synthesize isMySQL5;
@synthesize isMySQL6;
@synthesize supportsInformationSchema;
+@synthesize supportsSpatialExtensions;
@synthesize supportsShowCharacterSet;
@synthesize supportsCharacterSetDatabaseVar;
@synthesize supportsPost41CharacterSetHandling;
@@ -120,6 +121,9 @@
// The information schema database wasn't added until MySQL 5
supportsInformationSchema = (serverMajorVersion >= 5);
+ // Support for spatial extensions wasn't added until MySQL 4.1
+ supportsSpatialExtensions = [self isEqualToOrGreaterThanMajorVersion:4 minor:1 release:0];
+
// The SHOW CHARACTER SET statement wasn't added until MySQL 4.1.0
supportsShowCharacterSet = [self isEqualToOrGreaterThanMajorVersion:4 minor:1 release:0];
@@ -232,6 +236,7 @@
isMySQL6 = NO;
supportsInformationSchema = NO;
+ supportsSpatialExtensions = NO;
supportsShowCharacterSet = NO;
supportsCharacterSetDatabaseVar = NO;
supportsPost41CharacterSetHandling = NO;