提交 941f7fa4 authored 作者: Thomas Mueller's avatar Thomas Mueller

support newer JDBC drivers

上级 74d9bc55
...@@ -31,6 +31,7 @@ create table pg_catalog.pg_type( ...@@ -31,6 +31,7 @@ create table pg_catalog.pg_type(
typname varchar_ignorecase, typname varchar_ignorecase,
typnamespace int, typnamespace int,
typlen int, typlen int,
typtype varchar,
typbasetype int); typbasetype int);
insert into pg_catalog.pg_type insert into pg_catalog.pg_type
...@@ -39,6 +40,7 @@ select ...@@ -39,6 +40,7 @@ select
cast(type_name as varchar_ignorecase) typname, cast(type_name as varchar_ignorecase) typname,
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog') typnamespace, (select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog') typnamespace,
-1 typlen, -1 typlen,
'c' typtype,
0 typbasetype 0 typbasetype
from information_schema.type_info from information_schema.type_info
where pos = 0; where pos = 0;
...@@ -48,6 +50,7 @@ merge into pg_catalog.pg_type values( ...@@ -48,6 +50,7 @@ merge into pg_catalog.pg_type values(
'name', 'name',
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'), (select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'),
-1, -1,
'c',
0 0
); );
merge into pg_catalog.pg_type values( merge into pg_catalog.pg_type values(
...@@ -55,6 +58,7 @@ merge into pg_catalog.pg_type values( ...@@ -55,6 +58,7 @@ merge into pg_catalog.pg_type values(
'null', 'null',
(select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'), (select oid from pg_catalog.pg_namespace where nspname = 'pg_catalog'),
-1, -1,
'c',
0 0
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论