Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was 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

Description

@kyledrake

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions