This project is archived and is in readonly mode.
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
-
Alexander Simonov July 19th, 2010 @ 09:43 AM
Hm... Sorry but I have one question.
Jeremy Kemper changed milestone from 2.x to 3.x so I must rewrite patch to Rails3? -
Rohit Arondekar October 7th, 2010 @ 07:29 AM
Alexander, I think 2.x has come to an end to it's lifecycle. I don't think there will be a 2.4 — only bug fixes to 2.3.x — hence no feature changes (at least in theory) can be done on that branch. Hence the change in the milestone.
If you would like to work on making that patch for 3 I guess you can go ahead. Else I can close this ticket.
-
Alexander Simonov October 7th, 2010 @ 07:58 AM
Thank you for the reply!
Ok, I will rewrite this patch for Rails3.
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>