1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

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
This commit is contained in:
Tom Lane 2018-02-26 12:22:39 -05:00
parent 7e59039370
commit 046a4ce39c
2 changed files with 6 additions and 6 deletions

View File

@ -12,13 +12,13 @@ BEGIN
FOR r IN SELECT * FROM pg_event_trigger_ddl_commands() FOR r IN SELECT * FROM pg_event_trigger_ddl_commands()
LOOP LOOP
-- verify that tags match -- verify that tags match
tag = get_command_tag(r.command); tag = public.get_command_tag(r.command);
IF tag <> r.command_tag THEN IF tag <> r.command_tag THEN
RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag; RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag;
END IF; END IF;
-- log the operation -- log the operation
cmdtype = get_command_type(r.command); cmdtype = public.get_command_type(r.command);
IF cmdtype <> 'grant' THEN IF cmdtype <> 'grant' THEN
RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag; RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag;
ELSE ELSE
@ -28,7 +28,7 @@ BEGIN
-- if alter table, log more -- if alter table, log more
IF cmdtype = 'alter table' THEN IF cmdtype = 'alter table' THEN
FOR r2 IN SELECT * FOR r2 IN SELECT *
FROM unnest(get_altertable_subcmdtypes(r.command)) FROM unnest(public.get_altertable_subcmdtypes(r.command))
LOOP LOOP
RAISE NOTICE ' subcommand: %', r2.unnest; RAISE NOTICE ' subcommand: %', r2.unnest;
END LOOP; END LOOP;

View File

@ -13,13 +13,13 @@ BEGIN
FOR r IN SELECT * FROM pg_event_trigger_ddl_commands() FOR r IN SELECT * FROM pg_event_trigger_ddl_commands()
LOOP LOOP
-- verify that tags match -- verify that tags match
tag = get_command_tag(r.command); tag = public.get_command_tag(r.command);
IF tag <> r.command_tag THEN IF tag <> r.command_tag THEN
RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag; RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag;
END IF; END IF;
-- log the operation -- log the operation
cmdtype = get_command_type(r.command); cmdtype = public.get_command_type(r.command);
IF cmdtype <> 'grant' THEN IF cmdtype <> 'grant' THEN
RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag; RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag;
ELSE ELSE
@ -29,7 +29,7 @@ BEGIN
-- if alter table, log more -- if alter table, log more
IF cmdtype = 'alter table' THEN IF cmdtype = 'alter table' THEN
FOR r2 IN SELECT * FOR r2 IN SELECT *
FROM unnest(get_altertable_subcmdtypes(r.command)) FROM unnest(public.get_altertable_subcmdtypes(r.command))
LOOP LOOP
RAISE NOTICE ' subcommand: %', r2.unnest; RAISE NOTICE ' subcommand: %', r2.unnest;
END LOOP; END LOOP;