This project is archived and is in readonly mode.

#580 ✓resolved
Aaron Patterson

validates_uniqueness_of does not escape column names

Reported by Aaron Patterson | July 9th, 2008 @ 04:45 AM | in 2.x

validates_uniqueness_of does not escape column names before querying the database.

I've attached a patch that fixes the problem, and includes a test to reproduce the problem.

Comments and changes to this ticket

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>

Pages