未验证 提交 133a24c2 编写于 作者: S Shay Rojansky 提交者: GitHub

Really last tweaks to support PG 9.0 scaffolding (#2183)

上级 5316df8f
...@@ -277,7 +277,7 @@ deptype IN ('e', 'x') ...@@ -277,7 +277,7 @@ deptype IN ('e', 'x')
basetyp.typname AS basetypname, basetyp.typname AS basetypname,
attname, attname,
description, description,
{(connection.PostgreSqlVersion >= new Version(9, 1) ? "collname" : "''::text as collname")}, {(connection.PostgreSqlVersion >= new Version(9, 1) ? "collname" : "NULL::text as collname")},
attisdropped, attisdropped,
{(connection.PostgreSqlVersion >= new Version(10, 0) ? "attidentity::text" : "' '::text as attidentity")}, {(connection.PostgreSqlVersion >= new Version(10, 0) ? "attidentity::text" : "' '::text as attidentity")},
{(connection.PostgreSqlVersion >= new Version(12, 0) ? "attgenerated::text" : "' '::text as attgenerated")}, {(connection.PostgreSqlVersion >= new Version(12, 0) ? "attgenerated::text" : "' '::text as attgenerated")},
...@@ -553,7 +553,7 @@ deptype IN ('e', 'x') ...@@ -553,7 +553,7 @@ deptype IN ('e', 'x')
amname, amname,
indclass, indclass,
indoption, indoption,
{(connection.PostgreSqlVersion >= new Version(9, 1) ? "indcollation" : "''::text AS indcollation")}, {(connection.PostgreSqlVersion >= new Version(9, 1) ? "indcollation" : "''::oidvector AS indcollation")},
CASE CASE
WHEN indexprs IS NULL THEN NULL WHEN indexprs IS NULL THEN NULL
ELSE pg_get_expr(indexprs, cls.oid) ELSE pg_get_expr(indexprs, cls.oid)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册