Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `sql' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x3ac701ca> #1932

Closed
jlahtinen opened this issue Sep 12, 2019 · 11 comments · Fixed by #1962

Comments

@jlahtinen
Copy link
Contributor

raise ActiveRecord::RecordNotFound, "statement #{sql} returned no rows"

@koic
Copy link
Collaborator

koic commented Sep 12, 2019

Thanks for the reporting. Could you write a reproduce script using the following address?
https://github.com/rsim/oracle-enhanced/blob/master/guides/bug_report_templates/active_record_gem.rb

@jlahtinen
Copy link
Contributor Author

@jlahtinen
Copy link
Contributor Author

@jlahtinen
Copy link
Contributor Author

I could make a PR also if really needed. Current master is hard for me to get tests pass although so I prefer not 🙄

@koic
Copy link
Collaborator

koic commented Sep 24, 2019

This error seems to be caused by #1546. Rails 5.2 and 6.0 has been targeted.
@yahonda Will it be backported to 5.2 and 6.0 branches when the master will be fixed?

@yahonda
Copy link
Collaborator

yahonda commented Sep 25, 2019

Thanks for the investigation.
Actually, it depends how much change is necessary to address this issue to back port or not.

Basically, I prefer to just back port to the latest release version because Oracle enhanced adapter 5.2.0 was released last year and this is the first issue reported after Oracle enhanced adapter 6.0.0 is out.

@koic
Copy link
Collaborator

koic commented Sep 26, 2019

Thanks for your reply.
In fact, I'm using Oracle enhanced adapter 1.8 with Rails 5.1.
I'm glad to have a migration path to Rails 6.0 if backported to Oracle enhanced adapter 5.2 stable branch. The problem is clear and its correction is simple.

@yahonda
Copy link
Collaborator

yahonda commented Sep 26, 2019

Understood and agreed. please go-ahead to open a pull request to master and backport it to release60 and release52 branches.

@stale
Copy link

stale bot commented Nov 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 25, 2019
@koic
Copy link
Collaborator

koic commented Nov 25, 2019

I will take this issue later.

@stale stale bot removed the wontfix label Nov 25, 2019
@yahonda
Copy link
Collaborator

yahonda commented Nov 25, 2019

Thanks for the update.

koic added a commit to koic/oracle-enhanced that referenced this issue Dec 18, 2019
### Summary

Fixes rsim#1932.

This PR fixes an error when writing lobs.
This error seems to be caused by rsim#1546. Rails 5.2 and 6.0 has been targeted.

### Other Information

rsim#1932 discusses backporting to Rails 5.2 and Rails 6.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants