Fix failing test on MariaDB

This commit is contained in:
Vlad Mihalcea 2017-06-16 11:58:13 +03:00
parent a7fc440e4c
commit e50809e631
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ public class TransactionUtil {
}
else if( Dialect.getDialect() instanceof MySQLDialect ) {
try (PreparedStatement st = connection.prepareStatement("SET GLOBAL innodb_lock_wait_timeout = ?")) {
try (PreparedStatement st = connection.prepareStatement("SET SESSION innodb_lock_wait_timeout = ?")) {
st.setLong( 1, TimeUnit.MILLISECONDS.toSeconds( millis ) );
st.execute();
}