Skip to content
  • Murray Cumming's avatar
    Reports: Make summary fields work again. · f0c2ed90
    Murray Cumming authored
    * glom/libglom/report_builder.cc: report_build_summary():
    Remove any sort clause (ORDER BY) from the FoundSet because that makes
    no sense for a single row with summary fields. It looks like recent versions
    of PostgreSQL have become more strict about this, producing this error, for
    instance:
    column invoices.invoice_id must appear in the GROUP BY clause or be used in an aggregate function
    * Makefile_tests.am:
    * tests/test_selfhosting_new_then_report_summary.cc: Add a test for this.
    This fixes bug #669281 (alien)
    f0c2ed90