Skip to content

Commit

Permalink
Restore .to_s to escape_hstore
Browse files Browse the repository at this point in the history
  • Loading branch information
rf- committed Apr 25, 2012
1 parent 0c46dbb commit 1a05e15
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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:
Expand Down

0 comments on commit 1a05e15

Please sign in to comment.