提交 f390bd42 编写于 作者: R Rafael França

Merge pull request #22848 from derekprior/dp-postgresql-version

Make `postgresql_version` public
......@@ -390,12 +390,12 @@ def column_name_for_operation(operation, node) # :nodoc:
"average" => "avg",
}
protected
# Returns the version of the connected PostgreSQL server.
def postgresql_version
@connection.server_version
end
# Returns the version of the connected PostgreSQL server.
def postgresql_version
@connection.server_version
end
protected
# See http://www.postgresql.org/docs/current/static/errcodes-appendix.html
FOREIGN_KEY_VIOLATION = "23503"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册