update comment for ConvertSliceOfMapToValuesForCreate func
This commit is contained in:
		
							parent
							
								
									3e15478534
								
							
						
					
					
						commit
						41ac73b6a1
					
				| @ -44,7 +44,7 @@ func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[st | ||||
| 		columns = make([]string, 0, len(mapValues)) | ||||
| 	) | ||||
| 
 | ||||
| 	// when the length of mapValues,return directly here
 | ||||
| 	// when the length of mapValues is zero,return directly here
 | ||||
| 	// no need to call stmt.SelectAndOmitColumns method
 | ||||
| 	if len(mapValues) == 0 { | ||||
| 		stmt.AddError(gorm.ErrEmptySlice) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 daheige
						daheige