This project is archived and is in readonly mode.

#2662 new
Alexander Simonov

Add support for nested SQL queries

Reported by Alexander Simonov | May 17th, 2009 @ 05:34 PM | in 3.x

In one of RoR projects I have had to save Model with custom SQL query.
I've used nested SQL query.
The problem was that all the attributes of the model were quoted.
Patch fix this problem.
In the model we add new attr_accesor and name it like attribute name with "_sql" postfix. Value of this instance variable is our nested SQL query.

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>

Attachments

Tags

Pages