File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed 
hibernate-core/src/test/java/org/hibernate/orm/test/query/hql Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2045,7 +2045,16 @@ public void testIntervalDiffExpressions(SessionFactoryScope scope) {
20452045							.list ();
20462046					session .createQuery ("select (e.theTimestamp - (e.theTimestamp + (4 day + 2 hour))) by second from EntityOfBasics e" , Long .class )
20472047							.list ();
2048+ 				}
2049+ 		);
2050+ 	}
20482051
2052+ 	@ Test 
2053+ 	@ SkipForDialect (dialectClass  = PostgresPlusDialect .class ,
2054+ 			reason  = "PT47H59M59.999999S instead of PT48H" )
2055+ 	public  void  testIntervalDiffExpressionsWithAssertions (SessionFactoryScope  scope ) {
2056+ 		scope .inTransaction (
2057+ 				session  -> {
20492058					assertThat ( session .createQuery ("select (local datetime + 2 day) - local datetime" ).getSingleResult (),
20502059							is ( Duration .ofDays ( 2  ) ) );
20512060					assertThat ( session .createQuery ("select (local datetime - 12 hour) - local datetime" ).getSingleResult (),
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments