HHH-14041 - H2Dialect: fix referential integrity constraint constraint name extraction
This commit is contained in:
parent
bfef0df089
commit
ff7aa5328f
|
@ -330,6 +330,9 @@ public class H2Dialect extends Dialect {
|
|||
if ( idx > 0 ) {
|
||||
constraintName = message.substring( idx + "violation: ".length() );
|
||||
}
|
||||
if ( sqle.getSQLState().equals("23506") ) {
|
||||
constraintName = constraintName.substring( 1, constraintName.indexOf(":") );
|
||||
}
|
||||
}
|
||||
return constraintName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue