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

Commitbd5eeb2

Browse files
committed
PGPRO-12044: Add output variant for PG18 for contrib/shared_ispell/sql/security.sql test.
Caused by: - 774171c4f640853b1cf8747a4762631d2f5d25be (PostgreSQL) Improve reporting of errors in extension script files. Tags: shared_ispell
1 parent56c47f0 commitbd5eeb2

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

‎expected/security_1.out

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
create type si_dicts_result as (dict_name VARCHAR, affix_name VARCHAR, words INT, affixes INT, bytes INT);
2+
create function shared_ispell_dicts( OUT dict_name VARCHAR, OUT affix_name VARCHAR, OUT words INT, OUT affixes INT, OUT bytes INT)
3+
returns SETOF record as $$
4+
declare
5+
qString varchar(4000);
6+
rec si_dicts_result;
7+
begin
8+
qString := 'select * from shared_ispell_dicts()';
9+
for rec in execute qString loop
10+
return NEXT;
11+
end loop;
12+
return;
13+
end
14+
$$ language plpgsql;
15+
create extension shared_ispell;
16+
ERROR: function "shared_ispell_dicts" already exists with same argument types
17+
CONTEXT: SQL statement "CREATE FUNCTION shared_ispell_dicts( OUT dict_name VARCHAR, OUT affix_name VARCHAR, OUT words INT, OUT affixes INT, OUT bytes INT)
18+
RETURNS SETOF record
19+
AS '$libdir/shared_ispell', 'dispell_list_dicts'
20+
LANGUAGE C IMMUTABLE"
21+
extension script file "shared_ispell--1.1.0.sql", near line 26
22+
drop extension if exists shared_ispell;
23+
NOTICE: extension "shared_ispell" does not exist, skipping
24+
drop type si_dicts_result;
25+
drop function shared_ispell_dicts();
26+
create type si_stoplists_result as (stop_name VARCHAR, words INT, bytes INT);
27+
create function shared_ispell_stoplists(OUT stop_name VARCHAR, OUT words INT, OUT bytes INT)
28+
returns SETOF record as $$
29+
declare
30+
rec si_stoplists_result;
31+
qString varchar(4000);
32+
begin
33+
qString := 'select * from shared_ispell_stoplists()';
34+
for rec in execute qString loop
35+
return NEXT;
36+
end loop;
37+
return;
38+
end
39+
$$ language plpgsql;
40+
create extension shared_ispell;
41+
ERROR: function "shared_ispell_stoplists" already exists with same argument types
42+
CONTEXT: SQL statement "CREATE FUNCTION shared_ispell_stoplists( OUT stop_name VARCHAR, OUT words INT, OUT bytes INT)
43+
RETURNS SETOF record
44+
AS '$libdir/shared_ispell', 'dispell_list_stoplists'
45+
LANGUAGE C IMMUTABLE"
46+
extension script file "shared_ispell--1.1.0.sql", near line 31
47+
drop extension if exists shared_ispell;
48+
NOTICE: extension "shared_ispell" does not exist, skipping
49+
drop type si_stoplists_result;
50+
drop function shared_ispell_stoplists();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp