提交 429b2a2d 编写于 作者: I Ivan Zinovyev

Fix Illegal parameter data type bigint for operation 'get_lock' error

上级 4aeeb6dc
......@@ -117,11 +117,11 @@ def supports_advisory_locks?
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册