|
org.hibernate.test.annotations.onetoone.OneToOneTest#onPrepareStatement
This method attempts to count the number of joins in the statements being prepared by the tests, except it wants to skip any statement using the sequence generators.
if (sql.startsWith("select") & !sql.contains("nextval")) {
The problem here is, with the FoundationDBDialect (and we suspect others), is our sequence support does not use "nextval". Instead it uses the SQL standard "NEXT VALUE FOR". So the test fails incorrectly.
Since the Dialect#getSequenceNextValString() supplies the correct string for the test, replacing the hard coded string with the call allows the test to pass successfully.
|