提交 51598aba 编写于 作者: R Ryuta Kamizono

Logging type casted binds

Fixes #22398.
上级 af1fd0fc
......@@ -28,7 +28,7 @@ def render_bind(attribute)
"<#{attribute.value.bytesize} bytes of binary data>"
end
else
attribute.value_for_database
type_cast(attribute.value_for_database)
end
[attribute.name, value]
......@@ -91,6 +91,10 @@ def sql_color(sql)
def logger
ActiveRecord::Base.logger
end
def type_cast(value)
ActiveRecord::Base.connection.type_cast(value)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册