when id(PrioritizedPrimaryField) datatype is bigint, AUTO_INCREMENT missed
				
					
				
			This commit is contained in:
		
							parent
							
								
									a35883590b
								
							
						
					
					
						commit
						5e634f15df
					
				@ -229,7 +229,7 @@ func ParseWithSpecialTableName(dest interface{}, cacheStore *sync.Map, namer Nam
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if field := schema.PrioritizedPrimaryField; field != nil {
 | 
						if field := schema.PrioritizedPrimaryField; field != nil {
 | 
				
			||||||
		switch field.GORMDataType {
 | 
							switch field.DataType {
 | 
				
			||||||
		case Int, Uint:
 | 
							case Int, Uint:
 | 
				
			||||||
			if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok {
 | 
								if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok {
 | 
				
			||||||
				if !field.HasDefaultValue || field.DefaultValueInterface != nil {
 | 
									if !field.HasDefaultValue || field.DefaultValueInterface != nil {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user