Repository is archived
No commit activity in last 3 years
No release in over 3 years
A monkey patch for oracle-enhanced ISSUE #755.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 4.2.1, < 5.2
>= 3.0.0

Runtime

 Project Readme

activerecord-oracle_enhanced-adapter-monky_patch_755 Gem Version

A monkey patch for oracle-enhanced ISSUE #755.

ISSUE #755 has been resolved on activerecord-oracle_enhanced-adapter 1.7.3 or higher.

The development of this gem has ended. Rails 5.2 or higher are not supported.

Installation

Add these lines to your application's Gemfile:

gem 'activerecord-oracle_enhanced-adapter-monky_patch_755'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activerecord-oracle_enhanced-adapter-monky_patch_755

Target

  • 'activerecord', '>= 4.2.1'
  • 'activerecord-oracle_enhanced-adapter', '>= 1.6.0'

Motivation

This library is bound to solve this problem in Rails 4.2.x with Oracle.

> created_at = Model.first.created_at
> Model.where(created_at: created_at)
  => []

Above is not expected. This library will apply a patch as a following behavior.

> created_at = Model.first.created_at
> Model.where(created_at: created_at)
  => [#<Model id: ***snip***>]

To explain this a little further: oracle-enhanced ISSUE #755.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

activerecord-oracle_enhanced-adapter-monky_patch_755 is released under the MIT License.