Skip to content

Commit

Permalink
0005635: Single Store extends MySQL dialect but does not need to check
Browse files Browse the repository at this point in the history
for an "innodb" engine
  • Loading branch information
joshahicks committed Dec 13, 2022
1 parent cc25368 commit 5c8a640
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -25,6 +25,7 @@

import org.apache.commons.lang3.StringUtils;
import org.jumpmind.db.model.Table;
import org.jumpmind.db.platform.DatabaseNamesConstants;
import org.jumpmind.db.platform.IDatabasePlatform;
import org.jumpmind.db.platform.PermissionType;
import org.jumpmind.db.sql.ISqlTransaction;
Expand Down Expand Up @@ -62,7 +63,7 @@ public MySqlSymmetricDialect(IParameterService parameterService, IDatabasePlatfo
super(parameterService, platform);
this.parameterService = parameterService;
String version = getProductVersion();
if (!Version.isOlderThanVersion(version, "5.1.5")) {
if (!Version.isOlderThanVersion(version, "5.1.5") && !platform.getName().equals(DatabaseNamesConstants.SINGLE_STORE)) {
String defaultEngine = platform.getSqlTemplate().queryForString("select engine from information_schema.engines where support='DEFAULT';");
if (!StringUtils.equalsIgnoreCase(defaultEngine, "innodb")) {
String message = "Please ensure that the default storage engine is set to InnoDB";
Expand Down

0 comments on commit 5c8a640

Please sign in to comment.