Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

NoMethodError: undefined method `variable_value' (JRuby 1.6.3 and dm-mysql-adapter) #29

Open
kyledrake opened this issue Aug 17, 2011 · 0 comments

Comments

@kyledrake
Copy link

This was resolved once and came back: http://datamapper.lighthouseapp.com/projects/20609/tickets/1410-dm-migrations-dm-mysql-adapter-undefined-method

This monkey patch still fixes the problem:

      repository.adapter.class.class_eval do
        def show_variable(name)
          select('SELECT variable_value FROM information_schema.session_variables WHERE LOWER(variable_name) = ?', name).first
        end
      end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant