GithubHelp home page GithubHelp logo

.joins issue about rails-plsql HOT 4 OPEN

flash-gordon avatar flash-gordon commented on June 12, 2024
.joins issue

from rails-plsql.

Comments (4)

davidrenne avatar davidrenne commented on June 12, 2024

It would at least be cool if you could try reproducing. Basically create a new model that you could in theory call joins(:new_table) with Users pipeline function call and ensure this is a regular model that is not a rails-plsql model and see if the alias issue is repeatable.

from rails-plsql.

flash-gordon avatar flash-gordon commented on June 12, 2024

Consider that in most cases using pipelined functions for filtering is not such effective as using plain views. Pipeline functions are more about using imperative logic for building datasets. That's why in my project I never had to join function result set with table/view.
Anyway, what version of Rails are you using?

from rails-plsql.

davidrenne avatar davidrenne commented on June 12, 2024

Ok might try just putting it in a view.  3.2.15 is the version I am using.

Thanks!

Dave

On Mon, Oct 27, 2014 at 5:16 PM, Nikita Shilnikov
[email protected] wrote:

Consider that in most cases using pipelined functions for filtering is not such affective as using plain views. Pipeline functions are more about using imperative logic for building datasets. That's why in my project I never had to join function result set with table/view.

Anyway, what version of Rails are you using?

Reply to this email directly or view it on GitHub:
#5 (comment)

from rails-plsql.

davidrenne avatar davidrenne commented on June 12, 2024

I really have no clue how we could even be using .joins(:modelSymbol) anyways. The whole idea of things like that is that the sql is just build using AREL. But since pipeline functions typically need a parameter passed, rails-plsql probably should not even support this. Since these all need to be bound for parameters on the pipeline functions. Maybe I need to use a raw SQL join of some kind and bind in the parameters that way inside the SQL.

I think I am going to try to join things via raw SQL and subselects.

from rails-plsql.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.