Merge 50786316821e0e9b57b4e5bd02c6d839f4309f76 into 9acaa33324bbcc78239a1c913d4f1292c12177b9
This commit is contained in:
		
						commit
						819ea05120
					
				@ -134,7 +134,7 @@ func forceReloadAfterCreateCallback(scope *Scope) {
 | 
			
		||||
	if blankColumnsWithDefaultValue, ok := scope.InstanceGet("gorm:blank_columns_with_default_value"); ok {
 | 
			
		||||
		db := scope.DB().New().Table(scope.TableName()).Select(blankColumnsWithDefaultValue.([]string))
 | 
			
		||||
		for _, field := range scope.Fields() {
 | 
			
		||||
			if field.IsPrimaryKey && !field.IsBlank {
 | 
			
		||||
			if field.IsPrimaryKey {
 | 
			
		||||
				db = db.Where(fmt.Sprintf("%v = ?", field.DBName), field.Field.Interface())
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user