Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

[Patch] Fix mixed case column calculations

#2645

Calculations, e.g. sum(), are missing a quote_column_name() wrapper. Included is the fix, a test, and a matching db schema and fixture change.

Reported by alan · May 14th, 2009 @ 04:05 AM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. alan
    alan
    • Title changed from Fix mixed case column calculations to [patch] Fix mixed case column calculations

    May 14th, 2009 @ 06:51 AM

  2. alan
    alan
    • Title changed from [patch] Fix mixed case column calculations to [Patch] Fix mixed case column calculations

    May 14th, 2009 @ 06:52 AM

  3. alan
    alan

    This will also allow for calculations on reserved word column names, which always require quoting. For example, a column named "count" would require quoting. A list of several reserved words, by standard, can be found at http://www.postgresql.org/docs/8.3/static/sql-keywords-appendix.html .

    May 15th, 2009 @ 08:30 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  5. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 04:15 AM