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 class SQLQueryParser {
|
|||
// 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…
Reference in New Issue