Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8ec8fe0

Browse files
committed
Message style fix
Don't quote type name placeholders.
1 parent c82d59d commit 8ec8fe0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/partitioning/partbounds.c

+1-1
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

+1-1
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)