Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add support for nested SQL queries

#2662

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.

Reported by Alexander Simonov · May 17th, 2009 @ 05:34 PM

State: new
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  2. Alexander Simonov
    Alexander Simonov

    Hm... Sorry but I have one question.
    Jeremy Kemper changed milestone from 2.x to 3.x so I must rewrite patch to Rails3?

    July 19th, 2010 @ 09:43 AM

  3. Rohit Arondekar
    Rohit Arondekar

    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.

    October 7th, 2010 @ 07:29 AM

  4. Alexander Simonov
    Alexander Simonov

    Thank you for the reply!
    Ok, I will rewrite this patch for Rails3.

    October 7th, 2010 @ 07:58 AM

  5. bingbing