Fix double pointer for where conditions, close #4159
This commit is contained in:
		
							parent
							
								
									0bfe4264c0
								
							
						
					
					
						commit
						a89e185cd8
					
				@ -339,6 +339,10 @@ func (stmt *Statement) BuildCondition(query interface{}, args ...interface{}) []
 | 
			
		||||
			}
 | 
			
		||||
		default:
 | 
			
		||||
			reflectValue := reflect.Indirect(reflect.ValueOf(arg))
 | 
			
		||||
			for reflectValue.Kind() == reflect.Ptr {
 | 
			
		||||
				reflectValue = reflectValue.Elem()
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if s, err := schema.Parse(arg, stmt.DB.cacheStore, stmt.DB.NamingStrategy); err == nil {
 | 
			
		||||
				selectedColumns := map[string]bool{}
 | 
			
		||||
				if idx == 0 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user