disable a test on Sybase

(missed this failure)
This commit is contained in:
Gavin King 2022-01-04 16:53:07 +01:00
parent 254d4d0351
commit 4ae977a41e
1 changed files with 14 additions and 5 deletions

View File

@ -31,6 +31,7 @@ import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.OracleDialect; import org.hibernate.dialect.OracleDialect;
import org.hibernate.dialect.PostgreSQLDialect; import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.dialect.SQLServerDialect; import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.dialect.TiDBDialect; import org.hibernate.dialect.TiDBDialect;
import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase; import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase;
import org.hibernate.query.QueryProducer; import org.hibernate.query.QueryProducer;
@ -218,13 +219,21 @@ public class HQLTest extends BaseEntityManagerFunctionalTestCase {
"insert Person (id, name) " + "insert Person (id, name) " +
"values (100L, 'Jane Doe')") "values (100L, 'Jane Doe')")
.executeUpdate(); .executeUpdate();
//end::hql-insert-example[]
});
}
@Test @SkipForDialect(SybaseDialect.class)
public void hql_multi_insert_example() {
doInJPA(this::entityManagerFactory, entityManager -> {
//tag::hql-insert-example[]
entityManager.createQuery( entityManager.createQuery(
"insert Person (id, name) " + "insert Person (id, name) " +
"values (101L, 'J A Doe III'), " + "values (101L, 'J A Doe III'), " +
"(102L, 'J X Doe'), " + "(102L, 'J X Doe'), " +
"(103L, 'John Doe, Jr')") "(103L, 'John Doe, Jr')")
.executeUpdate(); .executeUpdate();
//end::hql-insert-example[] //end::hql-insert-example[]
}); });
} }