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

Downcase keys in result row hash. #19

Open
wants to merge 1 commit into
base: AR5.0-support
Choose a base branch
from

Conversation

vanne
Copy link

@vanne vanne commented Mar 8, 2019

For me MySQL (Percona server 8.0.13) is returning all caps keys
in the result row hash:

[1] pry(#<ActiveRecord::ConnectionAdapters::Mysql2Adapter>)> row
=> {"VIEW_DEFINITION"=>
  "select .......

The result is that db:schema:dump is failing:

rails aborted!
NoMethodError: undefined method `gsub!' for nil:NilClass
/........./vendor/bundle/ruby/2.4.0/bundler/gems/schema_plus_views-71dce2030147/lib/schema_plus/views/active_record/connection_adapters/mysql2_adapter.rb:12:in `block in view_definition'

For me MySQL (Percona server 8.0.13) is returning all caps keys
in the result row hash which makes db:schema:dump fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant