Closed yahonda closed 6 years ago
Per #523, Arel development is moving to rails/rails.
If this issue is still relevant, please consider reopening it over there. (Note that the Rails repository does not accept feature request issues, and requires reproduction steps that rely on Active Record's documented API.)
This issue is originally reported at rsim/oracle-enhanced#1029
When the column name is mixed case, i.e. "SortIndex",
Post.order("SortIndex").first
getsActiveRecord::StatementInvalid: OCIError: ORA-00904
Oracle database identifier is upper case by default. If users would like to have case sensitive one, they need to quote. Oracle enhanced adapter supports case-sensitive identifier, such as table name, column name. Then I've found
order by
clause is created by Arelhttps://github.com/rails/arel/blob/7-1-stable/lib/arel/visitors/to_sql.rb#L219-L226
Environment