When all filters are in the alternatives group, the WHERE clause contains an empty set of parentheses, causing and SQL error. The attached patch removes the empty group that causes the error.

Comments

darren oh’s picture

Status: Needs review » Needs work
StatusFileSize
new24.14 KB

Reorganized and cleaned up code, and started a COALESCE function for fields. COALESCE has some problems:

  • Labels for coalesced fields are not removed.
  • Users cannot set aliases for coalesced fields (could use label as alias).
  • The primary key gets added multiple times.
darren oh’s picture

Title: Error when all filters are in alternatives group » COALESCE for fields/Error when all filters are in alternatives group
darren oh’s picture

Title: COALESCE for fields/Error when all filters are in alternatives group » Error when all filters are in alternatives group
Status: Needs work » Fixed

Fixed in CVS commit 178070. The coalesce feature will be added separately.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.