flash-gordon / rails-plsql Goto Github PK
View Code? Open in Web Editor NEWExtension for ActiveRecord that provides convenient using some of Oracle PL/SQL features.
License: MIT License
Extension for ActiveRecord that provides convenient using some of Oracle PL/SQL features.
License: MIT License
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.
;.-(
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.