提交 65f694ff 编写于 作者: A Alex Kitchens

[ci skip] Clarify Postgresql Documentation

This clarifies the object that +ActiveRecord::Base.connection.execute+
will return when using Postgresql.
上级 f08a2834
......@@ -89,10 +89,10 @@ def query(sql, name = nil) #:nodoc:
end
end
# Executes an SQL statement, returning a PGresult object on success
# or raising a PGError exception otherwise.
# Note: the PGresult object is manually memory managed; if you don't
# need it specifically, you many want consider the exec_query wrapper.
# Executes an SQL statement, returning a PG::Result object on success
# or raising a PG exception otherwise.
# Note: the PG::Result object is manually memory managed; if you don't
# need it specifically, you may want consider the <tt>exec_query</tt> wrapper.
def execute(sql, name = nil)
log(sql, name) do
@connection.async_exec(sql)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册