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

Commit8ec8fe0

Browse files
committed
Message style fix
Don't quote type name placeholders.
1 parentc82d59d commit8ec8fe0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/partitioning/partbounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4755,7 +4755,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
47554755
if (argtype!=key->parttypid[j]&& !IsBinaryCoercible(argtype,key->parttypid[j]))
47564756
ereport(ERROR,
47574757
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
4758-
errmsg("column %d of the partition key has type\"%s\", but supplied value is of type\"%s\"",
4758+
errmsg("column %d of the partition key has type%s, but supplied value is of type%s",
47594759
j+1,format_type_be(key->parttypid[j]),format_type_be(argtype))));
47604760

47614761
fmgr_info_copy(&my_extra->partsupfunc[j],

‎src/test/regress/expected/hash_part.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SELECT satisfies_hash_partition('mchash'::regclass, 3, 1, NULL::int);
4848
ERROR: number of partitioning columns (2) does not match number of partition keys provided (1)
4949
-- wrong argument type
5050
SELECT satisfies_hash_partition('mchash'::regclass, 2, 1, NULL::int, NULL::int);
51-
ERROR: column 2 of the partition key has type"text", but supplied value is of type"integer"
51+
ERROR: column 2 of the partition key has type text, but supplied value is of type integer
5252
-- ok, should be false
5353
SELECT satisfies_hash_partition('mchash'::regclass, 4, 0, 0, ''::text);
5454
satisfies_hash_partition

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp