MySQL: Sort doesn't work with odd-cased column names

Description

Root cause:

  • MySQL's metadata says the column is "ColumnName" if queried with SELECT columnname FROM table1, but MySQL says the column is "columnname" with SELECT * FROM (SELECT columnname FROM table1) WHERE ....

  • Column names can't be escaped properly because " is the same as ' in MySQL, which makes "ColumnName" a literal string.

Environment

None

Observations

None

Requirement Yogi

Activity

Show:
Resolved

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Requirement Yogi

Created November 16, 2014 at 2:28 PM
Updated October 3, 2019 at 11:10 AM
Resolved July 14, 2015 at 7:25 PM