Patch #20124 » sql_for_fields_with_group-git.diff
app/models/query.rb | ||
---|---|---|
588 | 588 |
elsif respond_to?("sql_for_#{field}_field") |
589 | 589 |
# specific statement |
590 | 590 |
filters_clauses << send("sql_for_#{field}_field", field, operator, v) |
591 |
elsif field =~ /^(.+)\./ && respond_to?("sql_for_#{$2}_field") |
|
592 |
# specific statement |
|
593 |
filters_clauses << send("sql_for_#{$2}_field", field, operator, v) |
|
591 | 594 |
else |
592 | 595 |
# regular field |
593 | 596 |
filters_clauses << '(' + sql_for_field(field, operator, v, queried_table_name, field) + ')' |