mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-11028 - {h-schema} is not replaced in SQLDelete, SQLInsert and SQLUpdate
Trim the sQL query before checking it for {h-schema} placeholders
This commit is contained in:
parent
88c2bda837
commit
5b710533f7
@ -76,7 +76,7 @@ public String process() {
|
||||
// don't get'em'all we throw an exception! Way better than trial and error ;)
|
||||
protected String substituteBrackets(String sqlQuery) throws QueryException {
|
||||
|
||||
if ( PREPARED_STATEMENT_PATTERN.matcher( sqlQuery ).matches() ) {
|
||||
if ( PREPARED_STATEMENT_PATTERN.matcher( sqlQuery.trim() ).matches() ) {
|
||||
return sqlQuery;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user