aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerSupport.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-05-12 20:57:57 +0000
committerstuconnolly <stuart02@gmail.com>2013-05-12 20:57:57 +0000
commitcae86c6943496128a61056b88a2c1c9420ce15ee (patch)
tree0087cf454007899b7981a0d53abb29d19db9b0a6 /Source/SPServerSupport.m
parent6d5741b74f72dab22eeb39ac4e601961baa005f8 (diff)
downloadsequelpro-cae86c6943496128a61056b88a2c1c9420ce15ee.tar.gz
sequelpro-cae86c6943496128a61056b88a2c1c9420ce15ee.tar.bz2
sequelpro-cae86c6943496128a61056b88a2c1c9420ce15ee.zip
Issue #1515: Add support for fractional seconds in date/time data types on server versions (>5.6.3) that support them.
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 78a2b287..95120494 100644
--- a/Source/SPServerSupport.m
+++ b/Source/SPServerSupport.m
@@ -73,6 +73,7 @@
@synthesize supportsTriggers;
@synthesize supportsIndexKeyBlockSize;
@synthesize supportsQuotingEngineTypeInCreateSyntax;
+@synthesize supportsFractionalSeconds;
@synthesize serverMajorVersion;
@synthesize serverMinorVersion;
@synthesize serverReleaseVersion;
@@ -192,6 +193,9 @@
// MySQL 4.0 doesn't seem to like having the ENGINE/TYPE quoted in a table's create syntax
supportsQuotingEngineTypeInCreateSyntax = [self isEqualToOrGreaterThanMajorVersion:4 minor:1 release:0];
+
+ // Fractional second support wasn't added until MySQL 5.6.4
+ supportsFractionalSeconds = [self isEqualToOrGreaterThanMajorVersion:5 minor:6 release:4];
}
/**
@@ -280,6 +284,7 @@
supportsTriggers = NO;
supportsIndexKeyBlockSize = NO;
supportsQuotingEngineTypeInCreateSyntax = NO;
+ supportsFractionalSeconds = NO;
}
/**