Movatterモバイル変換


[0]ホーム

URL:


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

Commit3300e87

Browse files
committed
Schema-qualify references in test_ddl_deparse test script.
This omission seems to be what is causing buildfarm failures on crake.Security:CVE-2018-1058
1 parentadb0718 commit3300e87

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/test/modules/test_ddl_deparse/expected/test_ddl_deparse.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ BEGIN
1212
FOR r IN SELECT * FROM pg_event_trigger_ddl_commands()
1313
LOOP
1414
-- verify that tags match
15-
tag = get_command_tag(r.command);
15+
tag =public.get_command_tag(r.command);
1616
IF tag <> r.command_tag THEN
1717
RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag;
1818
END IF;
1919

2020
-- log the operation
21-
cmdtype = get_command_type(r.command);
21+
cmdtype =public.get_command_type(r.command);
2222
IF cmdtype <> 'grant' THEN
2323
RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag;
2424
ELSE
@@ -28,7 +28,7 @@ BEGIN
2828
-- if alter table, log more
2929
IF cmdtype = 'alter table' THEN
3030
FOR r2 IN SELECT *
31-
FROM unnest(get_altertable_subcmdtypes(r.command))
31+
FROM unnest(public.get_altertable_subcmdtypes(r.command))
3232
LOOP
3333
RAISE NOTICE ' subcommand: %', r2.unnest;
3434
END LOOP;

‎src/test/modules/test_ddl_deparse/sql/test_ddl_deparse.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ BEGIN
1313
FOR rINSELECT*FROM pg_event_trigger_ddl_commands()
1414
LOOP
1515
-- verify that tags match
16-
tag= get_command_tag(r.command);
16+
tag=public.get_command_tag(r.command);
1717
IF tag<>r.command_tag THEN
1818
RAISE NOTICE'tag % doesn''t match %', tag,r.command_tag;
1919
END IF;
2020

2121
-- log the operation
22-
cmdtype= get_command_type(r.command);
22+
cmdtype=public.get_command_type(r.command);
2323
IF cmdtype<>'grant' THEN
2424
RAISE NOTICE'DDL test: type %, tag %', cmdtype, tag;
2525
ELSE
@@ -29,7 +29,7 @@ BEGIN
2929
-- if alter table, log more
3030
IF cmdtype='alter table' THEN
3131
FOR r2INSELECT*
32-
FROM unnest(get_altertable_subcmdtypes(r.command))
32+
FROM unnest(public.get_altertable_subcmdtypes(r.command))
3333
LOOP
3434
RAISE NOTICE' subcommand: %',r2.unnest;
3535
END LOOP;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp