mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-8138 - Log SQLException in DatabaseTarget with cause of schema export CREATE statement failure
This commit is contained in:
parent
2a96ed865d
commit
907a2750b6
@ -62,7 +62,8 @@ public void acceptCreateCommands(Iterable<String> commands) {
|
||||
}
|
||||
catch (SQLException e) {
|
||||
throw new PersistenceException(
|
||||
"Unable to execute JPA schema generation create command [" + command + "]"
|
||||
"Unable to execute JPA schema generation create command [" + command + "]",
|
||||
e
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -93,7 +94,7 @@ public void acceptDropCommands(Iterable<String> commands) {
|
||||
}
|
||||
catch (SQLException e) {
|
||||
// Just log the error because drop commands are often unsuccessful because the tables do not yet exist...
|
||||
log.warn( String.format( "Unable to execute JPA schema generation drop command [%s]", command ), e );
|
||||
log.warnf( "Unable to execute JPA schema generation drop command [" + command + "]", e );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user