GithubHelp home page GithubHelp logo

flash-gordon / rails-plsql Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 6.0 56 KB

Extension for ActiveRecord that provides convenient using some of Oracle PL/SQL features.

License: MIT License

Ruby 100.00%

rails-plsql's People

Contributors

flash-gordon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rails-plsql's Issues

.joins issue

I am finding that somehow when joins is used joining another table against a pipeline function, an incorrect alias is used in the joins.

It is using the entire package.function name in the INNER JOIN instead of the alias you automatically generate in the pipelined_function_alias.

Example:

SELECT "MP".* FROM TABLE(MY_PACKAGE.MY_PROCEDURE(:parameter)) "MP" INNER JOIN "XXXXXXXX" ON "XXXXXXXX"."XXXXXXXX" = "MY_PACKAGE"."MY_PROCEDURE"."ID"

This instead should be "MP" instead of the full object name.

I am about to abandon this gem because queries are not working as planned when doing more complex things. Things such as the find method are not working properly, but if I find_by_id they work because the where function is called I believe.

I dont know if I have time to learn all of the code and how low level active record works to get these queries to work properly.

This might be back to the drawing board to get existing models and code to play nice with a pipeline function I think unless I can solve this joins issue and maybe the .find() issue and the decimal issue I have encountered.

I was really hoping this gem could be my savior and that all existing queries could be easily redirected with reads going to the new models and existing find, sorts, joins etc etc would just work because the record structure is the same results coming from the pipeline function that simply filters out data dynamically based on session/rules/parameters.

;.-(

uninitialized constant PLSQL::PipelinedFunction

Hello,

We're having issues using this gem. We're using jruby 1.7.6 and when we try to rails c the application blows up on requiring the gem. This is the error we're getting:

NameError: uninitialized constant PLSQL::PipelinedFunction
from /Users/pivotal/.rvm/gems/jruby-1.7.6/bundler/gems/rails-plsql-ec5f42af06ac/lib/active_record/plsql/pipelined.rb:47:in `pipelined_function='

We can't find the declaration of PLSQL::PipelinedFunction in the gem, the ruby-plsql gem or the oracle-enhanced gem. Perhaps we're using different versions.

We'd really like to be able to use this, any help is appreciated.

Cheers

Robbie and Nigel

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.