fix:remove the tableName judgment in pluck
This commit is contained in:
		
							parent
							
								
									5202529ea1
								
							
						
					
					
						commit
						308b4e363f
					
				@ -483,8 +483,6 @@ func (db *DB) Pluck(column string, dest interface{}) (tx *DB) {
 | 
			
		||||
				column = f.DBName
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	} else if tx.Statement.Table == "" {
 | 
			
		||||
		tx.AddError(ErrModelValueRequired)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(tx.Statement.Selects) != 1 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user