From cae86c6943496128a61056b88a2c1c9420ce15ee Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 12 May 2013 20:57:57 +0000 Subject: Issue #1515: Add support for fractional seconds in date/time data types on server versions (>5.6.3) that support them. --- Source/SPServerSupport.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/SPServerSupport.m') 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; } /** -- cgit v1.2.3