mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user