This project is archived and is in readonly mode.
Arel needs to convert symbols passed to .order() into double quoted strings for PostgreSQL
Reported by Ray | September 9th, 2010 @ 10:20 PM
This works:
Business.order('name')
This fails:
Business.order(:name)
The error is:
ActiveRecord::StatementInvalid: PGError: ERROR: non-integer
constant in ORDER BY
LINE 1: SELECT "businesses".* FROM "businesses" ORDER BY 'name'
Comments and changes to this ticket
-
Aaron Patterson September 23rd, 2010 @ 12:27 AM
- State changed from new to needs-more-info
- Importance changed from to Low
Hey Ray! I tried reproducing this bug. I guess I need more info. Can you provide anything else like a failing test or something? Thanks.
-
Aaron Patterson October 30th, 2010 @ 10:53 PM
- State changed from needs-more-info to stale
Closing as I couldn't reproduce and this ticket is pretty old.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>