File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed 
main/java/org/hibernate/type/format 
test/java/org/hibernate/orm/test/mapping/hhh17404 Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,12 @@ private void moveStateMachine(StringJsonDocumentMarker marker) {
114114				assert  this .processingStates .getCurrent () == JsonProcessingState .OBJECT ;
115115				break ;
116116			case  QUOTE :
117- 				switch  ( currentState  ) {
118- 					case  STARTING_ARRAY :
119- 						this .processingStates .push ( JsonProcessingState .ARRAY  );
120- 						break ;
121- 					case  STARTING_OBJECT :
122- 						this .processingStates .push ( JsonProcessingState .OBJECT  );
123- 						this .processingStates .push ( JsonProcessingState .OBJECT_KEY_NAME  );
124- 						break ;
117+ 				if  (currentState  == JsonProcessingState .STARTING_ARRAY ) {
118+ 					this .processingStates .push ( JsonProcessingState .ARRAY  );
119+ 				}
120+ 				if  (currentState  == JsonProcessingState .STARTING_OBJECT ) {
121+ 					this .processingStates .push ( JsonProcessingState .OBJECT  );
122+ 					this .processingStates .push ( JsonProcessingState .OBJECT_KEY_NAME  );
125123				}
126124				break ;
127125			case  OTHER :
Original file line number Diff line number Diff line change 1818import  org .hibernate .testing .orm .junit .SessionFactoryScope ;
1919import  org .hibernate .testing .orm .junit .Setting ;
2020import  org .hibernate .type .SqlTypes ;
21+ import  org .junit .jupiter .api .AfterEach ;
2122import  org .junit .jupiter .api .BeforeEach ;
2223import  org .junit .jupiter .api .Test ;
2324
@@ -110,6 +111,15 @@ public void setup(SessionFactoryScope scope) {
110111		);
111112	}
112113
114+ 	@ AfterEach 
115+ 	public  void  tearDown (SessionFactoryScope  scope ) {
116+ 		scope .inTransaction (
117+ 				(session ) -> {
118+ 					session .createNativeQuery ( session .getDialect ().getDropTableString ( "TEST_OSON_COMPAT"  ) ).executeUpdate ();
119+ 				}
120+ 		);
121+ 	}
122+ 
113123	@ Test 
114124	public  void  verifyReadWorks (SessionFactoryScope  scope ) {
115125		scope .inTransaction (
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments