From 4ae977a41e39765b50d813d90aa30c1b42aecfac Mon Sep 17 00:00:00 2001 From: Gavin King Date: Tue, 4 Jan 2022 16:53:07 +0100 Subject: [PATCH] disable a test on Sybase (missed this failure) --- .../org/hibernate/userguide/hql/HQLTest.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java b/documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java index 3a95407e83..b0c983b090 100644 --- a/documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java @@ -31,6 +31,7 @@ import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.OracleDialect; import org.hibernate.dialect.PostgreSQLDialect; import org.hibernate.dialect.SQLServerDialect; +import org.hibernate.dialect.SybaseDialect; import org.hibernate.dialect.TiDBDialect; import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase; import org.hibernate.query.QueryProducer; @@ -218,13 +219,21 @@ public class HQLTest extends BaseEntityManagerFunctionalTestCase { "insert Person (id, name) " + "values (100L, 'Jane Doe')") .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( - "insert Person (id, name) " + - "values (101L, 'J A Doe III'), " + - "(102L, 'J X Doe'), " + - "(103L, 'John Doe, Jr')") - .executeUpdate(); + "insert Person (id, name) " + + "values (101L, 'J A Doe III'), " + + "(102L, 'J X Doe'), " + + "(103L, 'John Doe, Jr')") + .executeUpdate(); //end::hql-insert-example[] }); }