Skip to content

Commit

Permalink
0004387: Raima: Convert to auto-commit all of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmarzullo64 committed May 5, 2020
1 parent 06b0d7d commit 620a96a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -37,6 +37,7 @@ public class RaimaDatabasePlatform extends AbstractJdbcDatabasePlatform {
public RaimaDatabasePlatform(DataSource dataSource, SqlTemplateSettings settings) {
super(dataSource, settings);
supportsTruncate = false;
getDatabaseInfo().setRequiresAutoCommitForDdl(true);
}

@Override
Expand Down
Expand Up @@ -26,7 +26,9 @@
import javax.sql.DataSource;

import org.jumpmind.db.platform.DatabaseInfo;
import org.jumpmind.db.sql.ISqlTransaction;
import org.jumpmind.db.sql.JdbcSqlTemplate;
import org.jumpmind.db.sql.JdbcSqlTransaction;
import org.jumpmind.db.sql.SqlTemplateSettings;
import org.jumpmind.db.sql.SymmetricLobHandler;

Expand All @@ -52,5 +54,10 @@ protected int verifyArgType(Object arg, int argType) {
public String getSelectLastInsertIdSql(String sequenceName) {
return "select last_insert_id()";
}

@Override
public ISqlTransaction startSqlTransaction() {
return new JdbcSqlTransaction(this, true);
}

}

0 comments on commit 620a96a

Please sign in to comment.