mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Fix some errhint and errdetail strings missing a period
As per the error message style guide of the documentation, those should be full sentences. Author: Daniel Gustafsson Reviewed-by: Michael Paquier, Álvaro Herrera Discussion: https://1E8D49B4-16BC-4420-B4ED-58501D9E076B@yesql.se
This commit is contained in:
@ -2479,7 +2479,7 @@ select json_to_tsvector('null'::json, '"all"');
|
||||
|
||||
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '""');
|
||||
ERROR: wrong flag in flag array: ""
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '{}');
|
||||
ERROR: wrong flag type, only arrays and scalars are allowed
|
||||
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '[]');
|
||||
@ -2490,10 +2490,10 @@ select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d":
|
||||
|
||||
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, 'null');
|
||||
ERROR: flag array element is not a string
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '["all", null]');
|
||||
ERROR: flag array element is not a string
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
-- ts_headline for json
|
||||
select ts_headline('{"a": "aaa bbb", "b": {"c": "ccc ddd fff", "c1": "ccc1 ddd1"}, "d": ["ggg hhh", "iii jjj"]}'::json, tsquery('bbb & ddd & hhh'));
|
||||
ts_headline
|
||||
|
@ -4277,7 +4277,7 @@ select jsonb_to_tsvector('null'::jsonb, '"all"');
|
||||
|
||||
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '""');
|
||||
ERROR: wrong flag in flag array: ""
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '{}');
|
||||
ERROR: wrong flag type, only arrays and scalars are allowed
|
||||
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '[]');
|
||||
@ -4288,10 +4288,10 @@ select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d"
|
||||
|
||||
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, 'null');
|
||||
ERROR: flag array element is not a string
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["all", null]');
|
||||
ERROR: flag array element is not a string
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
|
||||
HINT: Possible values are: "string", "numeric", "boolean", "key", and "all".
|
||||
-- ts_headline for jsonb
|
||||
select ts_headline('{"a": "aaa bbb", "b": {"c": "ccc ddd fff", "c1": "ccc1 ddd1"}, "d": ["ggg hhh", "iii jjj"]}'::jsonb, tsquery('bbb & ddd & hhh'));
|
||||
ts_headline
|
||||
|
@ -2778,7 +2778,7 @@ begin
|
||||
end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 5 at SQL statement
|
||||
create or replace function stricttest() returns void as $$
|
||||
declare x record;
|
||||
@ -2852,7 +2852,7 @@ begin
|
||||
end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 5 at SQL statement
|
||||
create or replace function stricttest() returns void as $$
|
||||
declare x record;
|
||||
@ -2918,7 +2918,7 @@ end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
DETAIL: parameters: p1 = '2', p3 = 'foo'
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 8 at SQL statement
|
||||
create or replace function stricttest() returns void as $$
|
||||
declare x record;
|
||||
@ -2929,7 +2929,7 @@ begin
|
||||
end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 5 at SQL statement
|
||||
create or replace function stricttest() returns void as $$
|
||||
declare x record;
|
||||
@ -2977,7 +2977,7 @@ begin
|
||||
end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 10 at SQL statement
|
||||
reset plpgsql.print_strict_params;
|
||||
create or replace function stricttest() returns void as $$
|
||||
@ -2995,7 +2995,7 @@ end$$ language plpgsql;
|
||||
select stricttest();
|
||||
ERROR: query returned more than one row
|
||||
DETAIL: parameters: p1 = '2', p3 = 'foo'
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function stricttest() line 10 at SQL statement
|
||||
-- test warnings and errors
|
||||
set plpgsql.extra_warnings to 'all';
|
||||
@ -3128,7 +3128,7 @@ begin
|
||||
end;
|
||||
$$;
|
||||
WARNING: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
set plpgsql.extra_errors to 'too_many_rows';
|
||||
do $$
|
||||
declare x int;
|
||||
@ -3137,7 +3137,7 @@ begin
|
||||
end;
|
||||
$$;
|
||||
ERROR: query returned more than one row
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1
|
||||
HINT: Make sure the query returns a single row, or use LIMIT 1.
|
||||
CONTEXT: PL/pgSQL function inline_code_block line 4 at SQL statement
|
||||
reset plpgsql.extra_errors;
|
||||
reset plpgsql.extra_warnings;
|
||||
|
@ -2564,7 +2564,7 @@ create trigger child_row_trig
|
||||
-- but now we're not allowed to make it inherit anymore
|
||||
alter table child inherit parent;
|
||||
ERROR: trigger "child_row_trig" prevents table "child" from becoming an inheritance child
|
||||
DETAIL: ROW triggers with transition tables are not supported in inheritance hierarchies
|
||||
DETAIL: ROW triggers with transition tables are not supported in inheritance hierarchies.
|
||||
-- drop the trigger, and now we're allowed to make it inherit again
|
||||
drop trigger child_row_trig on child;
|
||||
alter table child inherit parent;
|
||||
|
Reference in New Issue
Block a user