-
Notifications
You must be signed in to change notification settings - Fork 4
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
Whats the highest Rails version supported? Rails 5.2.2 is not working #9
Comments
I don’t know. I don’t do Ruby anymore. When I built this library I was in Rails 4. |
@skoona Have you tried activerecord-jdbc-adapter, branch 52-stable? |
@rsov I will try branch 52-stable in a few minutes and let you know. Ran out of time on Friday; will try it first thing on Monday. Thanks |
FYI: Rails 5.2.3, JRuby-9.2.7.0, OS/400-7.2 Tried activerecord-jdbc-adapter, branch 52-stable and it gets me past arity error. Have not been successful reading tables yet; seems to be schema related; working on it now. |
@skoona If you have same table name in multiple schemas the adapter will get confused. You can specify the table directly like:
|
@rsov It was a schema issue on my end, corrected it and things appear to be working. I will be working closely with it for the next few weeks. Thanks for you help. |
All the AS400 SQL things I need for this app are accessible (Tables Views StoredProcs), so it's safe to close this issue. |
Things were going along fine until I attempted to establish an JNDI connection through Tomcat using a Warbler build. Is there a branch on active record-jdbc-adapter or active record-jdbcas400-adapter that has more complete coverage? I realize JNDI takes a different path through this code and I'm available to test any branch that offers a solution to connecting an AS400(7.+) to ActiveRecord(5.2+) |
What is the error you're getting? |
"wrong number of arguments (given 4, expected 1..3)"
|
Does your Gemfile has this?
|
Yes,
Again, the rails console using |
database.yml: I've cycled through adapters type of 'jndi', 'as400', and 'jdbc'
|
Hmmm, it does seem like the issue with Here's mine
|
I would say your config is not running in an Application Server like Tomcat... based the absence of |
I am, Tomcat 8. Warbled into a |
I'm tomcat 7. I'll upgrade to 8 today, since this is very early in a new project. I had understood that JNDI was the only way to engage Tomcat's features, and not using JNDI meant you were bypassing any benefits a AppServer might provide. Let's see if bypassing works for me on TC-7 |
@rsov Bypassing JNDI, simular to your config, does provide a useable database connection; thanks for the tip. I do note that DB pooling and several DevOps separation will be missing until JNDI is re-enabled. By DevOps..., I mean that things like username/passwords were managed by them and now I will need to put them into codebase or find some side method externalize them. Anything you can do to restore JNDI will be greatly appreciated. I will commit now to help test! |
I am not too familiar with JNDI or how it works Configuring pooling and password/username in It would like something like this:
|
wrong number of arguments (given 4, expected 1..3)
is the general response for every combination of drivers I've attempted. I happy to keep digging, but it seems as lost cause, which is why I ask "What is the highest Rails version supported by active record-jdbcas400-adapter?"The text was updated successfully, but these errors were encountered: