From 15ad4cdf44427d5a9595a0d7a15257ed79eae8ae Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 13 Jan 2011 00:51:39 +0000 Subject: - Add a new -engineTypeQueryName method to SPServerSupport, with a correct split between TYPE or ENGINE depending on database version. - Update CREATE TABLE and ALERT TABLE queries to use this, fixing custom-type table creation on MySQL <4 and table type changes on MySQL >= 5.5. This addresses Issue #947. --- Source/SPServerSupport.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/SPServerSupport.h') diff --git a/Source/SPServerSupport.h b/Source/SPServerSupport.h index fc16b426..bf18a8e8 100644 --- a/Source/SPServerSupport.h +++ b/Source/SPServerSupport.h @@ -65,6 +65,7 @@ BOOL supportsShowPrivileges; // Storage engines + NSString *engineTypeQueryName; BOOL supportsInformationSchemaEngines; BOOL supportsPre41StorageEngines; BOOL supportsBlackholeStorageEngine; @@ -171,6 +172,11 @@ */ @property (readonly) BOOL supportsShowPrivileges; +/** + * @property engineTypeQueryName Returns the appropriate query part for specifying table engine - ENGINE or TYPE + */ +@property (readonly) NSString *engineTypeQueryName; + /** * @property supportsInformationSchemaEngines Indicates if the server supports the information_schema.engines table */ -- cgit v1.2.3