提交 1a05e15e 编写于 作者: R Ryan Fitzgerald

Restore .to_s to escape_hstore

上级 0c46dbbc
......@@ -89,7 +89,7 @@ def string_to_hstore(string)
def escape_hstore(value)
value.nil? ? 'NULL'
: value == "" ? '""'
: '"%s"' % value.gsub(/(["\\])/, '\\\\\1')
: '"%s"' % value.to_s.gsub(/(["\\])/, '\\\\\1')
end
end
# :startdoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册