-
Notifications
You must be signed in to change notification settings - Fork 232
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
Jruby support #199
Jruby support #199
Conversation
The `result_status` method is not provided by the Java driver. This assertion was added in e4e3442, and the intention was only to simplify the test, so I think we're fine reverting that specific change.
While in MRI default values kept in the `columns` array are always quoted, in JRuby, they are resolved to the correct type. Since the following test already checks for user expectation (correct default when creating an object), I just removed the failing test.
JRuby 1.7.x is "1.9" compatible by default. Let's just use "jruby-1.7" and let `rvm` match that against the latest available patch level version.
e252819
to
925625d
Compare
Thank you! 🎉 👏 |
925625d
to
83a8c53
Compare
Fuzzy matching does not work... |
Thanks! 😄 I'd like to ask @kares though about this difference in behavior because whether this |
hey! honestly do not know if its much of an issue - recall noticing some |
Thanks! Sounds reasonable! |
This PR is included in the 3.1.0 gem release: https://rubygems.org/gems/activerecord-postgis-adapter JRuby folks: please give it a try & report any issues. |
Hi! This is an attempt to get the tests passing for JRuby. The main issue is 3d00764, since JRuby and MRI behave differently here and I don't know what's the expected behavior and whether this should be considered public API at all.
activerecord
but I think it's intentional. I think it happens here: https://github.com/rails/rails/blob/7f18ea14c893cb5c9f04d4fda9661126758332b5/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb#L59-L68Opinions?
EDIT: Just linking to the original issue: #198