For MySQL, replace remaining TYPE=InnoDB with ENGINE=InnoDB

- also fix for generated SQL (ie. JBPM)
- enables bootstrap on MySQL 5.5 rc (note: untested / unsupported)
- see http://forums.alfresco.com/en/viewtopic.php?f=8&t=26674
- re: ALF-4996

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-10-22 14:01:26 +00:00
parent 498a6cda70
commit ada7e349d6
6 changed files with 47 additions and 41 deletions

View File

@@ -1162,6 +1162,12 @@ public class SchemaBootstrap extends AbstractLifecycleBean
sql = sql.replaceAll("\\$\\{TRUE\\}", "1");
}
if (this.dialect != null && this.dialect instanceof MySQLInnoDBDialect)
{
// note: enable bootstrap on MySQL 5.5 (eg. for auto-generated SQL, such as JBPM)
sql = sql.replaceAll("(?i)TYPE=InnoDB", "ENGINE=InnoDB");
}
Object fetchedVal = executeStatement(connection, sql, fetchColumnName, optional, line, scriptFile);
if (fetchVarName != null && fetchColumnName != null)
{