Already Initialized Permanent Warnings After Updating Rails 4.2

After updating a simple Rails 4.1.8 application in Rails 4.2.0, I see a lot of warnings about already initialized constants coming out of the PostgreSQL adapter:

/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:6 warning: already initialized constant DOUBLE_QUOTE
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:7 warning: already initialized constant BACKSLASH
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:8 warning: already initialized constant COMMA
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:9 warning: already initialized constant BRACKET_OPEN
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:10 warning: already initialized constant BRACKET_CLOSE

Is this expected or indicates a problem with the new version of Rails (supposedly running under JRuby)? Is there any way to properly correct these warnings (except for their silence)?

+4
source share
2 answers

It is called activerecord-jdbc-adapter , which includes some of the core AR features, as it supports multiple AR releases from the same AR-JDBC G-series release.

ActiveRecord PostgreSQL, , ArrayParser. , Rails 4.2 / .

+2

Source: https://habr.com/ru/post/1568778/


All Articles