diff options
author | Ivan Zinovyev <vanyazin@gmail.com> | 2017-12-20 12:29:30 +0300 |
---|---|---|
committer | Ivan Zinovyev <vanyazin@gmail.com> | 2017-12-20 12:29:30 +0300 |
commit | 429b2a2d3af74cdbe058baa29efebe5ef58c4bef (patch) | |
tree | beff20cc9ffec5a0912a209fd6eae58406e03ba5 /activerecord | |
parent | 4aeeb6dcecd8b4f57767618d09025fc524429f41 (diff) | |
download | rails-429b2a2d3af74cdbe058baa29efebe5ef58c4bef.tar.gz rails-429b2a2d3af74cdbe058baa29efebe5ef58c4bef.tar.bz2 rails-429b2a2d3af74cdbe058baa29efebe5ef58c4bef.zip |
Fix Illegal parameter data type bigint for operation 'get_lock' error
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 0f4a11cb05..0afdd959f5 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -117,11 +117,11 @@ module ActiveRecord end def get_advisory_lock(lock_name, timeout = 0) # :nodoc: - query_value("SELECT GET_LOCK(#{quote(lock_name)}, #{timeout})") == 1 + query_value("SELECT GET_LOCK(#{quote(lock_name.to_s)}, #{timeout})") == 1 end def release_advisory_lock(lock_name) # :nodoc: - query_value("SELECT RELEASE_LOCK(#{quote(lock_name)})") == 1 + query_value("SELECT RELEASE_LOCK(#{quote(lock_name.to_s)})") == 1 end def native_database_types |