提交 5e77872a 编写于 作者: A Aaron Patterson

use consistent method calls for column inspection

上级 df9abfab
......@@ -315,7 +315,7 @@ def unescape_bytea(value)
def quote(value, column = nil) #:nodoc:
return super unless column
if value.kind_of?(String) && column.type == :binary
if value.kind_of?(String) && column.sql_type == 'bytea'
"'#{escape_bytea(value)}'"
elsif value.kind_of?(String) && column.sql_type == 'xml'
"xml '#{quote_string(value)}'"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册