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

[AR42][DB2] Fixed issue with serialization not happening #795

Merged
merged 7 commits into from
Aug 16, 2017

Conversation

rsov
Copy link
Contributor

@rsov rsov commented May 19, 2017

This is the fix for #725 bug

Added tests to confirm the behaviour

For some reason the the DB2 adapter's quote method is not getting value after its been serialized. So we check the column is ActiveRecord::Type::Serialized and then cast it for database

@kares
Copy link
Member

kares commented Jun 22, 2017

thanks @rsov ... as you probably already noticed your change effected other adapters and caused failures.
you can easily reproduce with SQLite using AR 3.0 (know its old but the stable branch should not break) ...
test simply needs updating (or isolating) https://travis-ci.org/jruby/activerecord-jdbc-adapter/jobs/234553859

@rsov
Copy link
Contributor Author

rsov commented Jun 28, 2017

@kares Yes, I've noticed it but didn't know what to do. Isolating the test is probably a good idea as it effects the db2 adapter only

@kares kares merged commit 2178236 into jruby:1-3-stable Aug 16, 2017
kares added a commit that referenced this pull request Sep 25, 2017
* 1-3-stable:
  prepare for 1.3.24
  [as400] Fixed ordering when limit and offset present
  [postgres] limit driver version correctly since > 9.4.1206 might break
  limit postgres jdbc version since 9.4 has a breaking changes for AR-JDBC
  [db2] fixed issue with serialization not happening (#795)
  [test] transaction state being released on reconnect!/disconnect!
  reconnect!/disconnect! shall call super to reset cache/transaction state
  [oracle] some ~ enhanced adapter compatibility with configuration
  [mysql] support setting collation: xxx with config[:encoding] like AR 4.2
  [as400] Check if the exception thrown is a false-positive (#792)
  [as400] Added truncate functionality for DB2/AS400 (#793)
  [as400] Added DatabaseTasks for the as400 (#791)
  [test] [as400] Fixed issue when a GUI dialog popus and aks to log in (#790)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants