Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83db7f0

Browse files
author
Rinat Mukhtarov
committed
test -> pg_catalog.name
1 parent aa59809 commit 83db7f0

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

‎functions/is/is_table_column.sql‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
create or replace function public.is_table_column(
2-
schema_name text,
3-
table_name text,
4-
column_name text
2+
schema_name pg_catalog.name,
3+
table_name pg_catalog.name,
4+
column_name pg_catalog.name
55
)
66
returns boolean
77
immutable
@@ -26,9 +26,9 @@ $$
2626
$$;
2727

2828
comment on function public.is_table_column(
29-
schema_name text,
30-
table_name text,
31-
column_name text
29+
schema_name pg_catalog.name,
30+
table_name pg_catalog.name,
31+
column_name pg_catalog.name
3232
) is 'Check table column exists';
3333

3434
create or replace function public.is_table_column(
@@ -43,8 +43,8 @@ create or replace function public.is_table_column(
4343
as
4444
$$
4545
select public.is_table_column(
46-
is_table_column.r.schema::text,
47-
is_table_column.r.table::text,
46+
is_table_column.r.schema::pg_catalog.name,
47+
is_table_column.r.table::pg_catalog.name,
4848
is_table_column.r.column
4949
);
5050
$$;

‎functions/is/is_view_column.sql‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
create or replace function public.is_view_column(
2-
schema_name text,
3-
view_name text,
4-
column_name text
2+
schema_name pg_catalog.name,
3+
view_name pg_catalog.name,
4+
column_name pg_catalog.name
55
)
66
returns boolean
77
immutable
@@ -26,9 +26,9 @@ $$
2626
$$;
2727

2828
comment on function public.is_view_column(
29-
schema_name text,
30-
view_name text,
31-
column_name text
29+
schema_name pg_catalog.name,
30+
view_name pg_catalog.name,
31+
column_name pg_catalog.name
3232
) is 'Check view column exists';
3333

3434
create or replace function public.is_view_column(
@@ -43,8 +43,8 @@ create or replace function public.is_view_column(
4343
as
4444
$$
4545
select public.is_view_column(
46-
is_view_column.r.schema::text,
47-
is_view_column.r.view::text,
46+
is_view_column.r.schema::pg_catalog.name,
47+
is_view_column.r.view::pg_catalog.name,
4848
is_view_column.r.column
4949
);
5050
$$;

‎types/table_column_type.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
create type public.table_column_type as (
22
"schema" regnamespace,
33
"table" regclass,
4-
"column" text
4+
"column" pg_catalog.name
55
);

‎types/view_column_type.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
create type public.view_column_type as (
22
"schema" regnamespace,
33
"view" regclass,
4-
"column" text
4+
"column" pg_catalog.name
55
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /