File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
hibernate-c3p0/src/test/java/org/hibernate/test/c3p0 Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 88import org .hibernate .boot .registry .StandardServiceRegistryBuilder ;
99import org .hibernate .c3p0 .internal .C3P0ConnectionProvider ;
1010import org .hibernate .community .dialect .AltibaseDialect ;
11+ import org .hibernate .dialect .SybaseASEDialect ;
1112import org .hibernate .dialect .TiDBDialect ;
1213import org .hibernate .engine .jdbc .connections .spi .ConnectionProvider ;
1314import org .hibernate .service .spi .ServiceRegistryImplementor ;
2122 */
2223@ SkipForDialect (value = TiDBDialect .class , comment = "Doesn't support SERIALIZABLE isolation" )
2324@ SkipForDialect (value = AltibaseDialect .class , comment = "Altibase cannot change isolation level in autocommit mode" )
25+ @ SkipForDialect (value = SybaseASEDialect .class , comment = "JtdsConnection.isValid not implemented" )
2426public class C3p0TransactionIsolationConfigTest extends BaseTransactionIsolationConfigTest {
2527 private StandardServiceRegistry ssr ;
2628
Original file line number Diff line number Diff line change 99import jakarta .persistence .criteria .CriteriaBuilder ;
1010import jakarta .persistence .criteria .CriteriaQuery ;
1111
12+ import org .hibernate .dialect .SQLServerDialect ;
13+ import org .hibernate .testing .orm .junit .SkipForDialect ;
1214import org .junit .Assert ;
1315import org .junit .Test ;
1416
2325public class StatementCacheTest extends BaseCoreFunctionalTestCase {
2426 @ Test
2527 @ JiraKey (value = "HHH-7193" )
28+ @ SkipForDialect (dialectClass = SQLServerDialect .class ,
29+ reason = "started failing after upgrade to c3p0 0.10" )
2630 public void testStatementCaching () {
2731 inSession (
2832 session -> {
@@ -56,7 +60,8 @@ public void testStatementCaching() {
5660 }
5761 );
5862
59- //only one entity should have been inserted to the database (if the statement in the cache wasn't cleared then it would have inserted both entities)
63+ // only one entity should have been inserted to the database
64+ // (if the statement in the cache wasn't cleared then it would have inserted both entities)
6065 inTransaction (
6166 session -> {
6267 CriteriaBuilder criteriaBuilder = session .getCriteriaBuilder ();
You can’t perform that action at this time.
0 commit comments