mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-03 08:19:15 +00:00
Fix failing test on MariaDB
This commit is contained in:
parent
a7fc440e4c
commit
e50809e631
@ -471,7 +471,7 @@ public static void setJdbcTimeout(Session session, long millis) {
|
||||
|
||||
}
|
||||
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…
x
Reference in New Issue
Block a user