mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-04 08:49:22 +00:00
HHH-6789 StringIndexOutOfBoundsException at TemplatedViolatedConstraintNameExtracter.extractUsingTemplate
This commit is contained in:
parent
53cae7ace7
commit
ee020c8215
@ -46,7 +46,7 @@ protected String extractUsingTemplate(String templateStart, String templateEnd,
|
||||
}
|
||||
|
||||
int start = templateStartPosition + templateStart.length();
|
||||
int end = message.lastIndexOf( templateEnd, start );
|
||||
int end = message.indexOf( templateEnd, start );
|
||||
if ( end < 0 ) {
|
||||
end = message.length();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user