pierrickrouxel / activerecord-jdbcas400-adapter

AS/400 JDBC adapter for ActiveRecord
MIT License
6 stars 4 forks source link

In the latest version, 1.3.20, where is @current_library defined? #10

Open nightsurge opened 3 years ago

nightsurge commented 3 years ago

@current_library shows up as part of the adapter.rb file when referencing tables and schema... however, it used to come from a System class from versions 1.3.19 and prior. Now it is never set and System class is gone.

I am getting errors because "tables" will use the @current_library value, which is never set and is nil.... so it throws the error: Unable to retrieve tables without current library

Is this a bug, or is @current_library set somewhere else now?

nightsurge commented 3 years ago

I locked my gem version to 1.3.19 and it works, so clearly this seems like some sort of regression issue in the latest 1.3.20 release.