Fix failing test on MariaDB
This commit is contained in:
parent
a7fc440e4c
commit
e50809e631
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue