mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Make messages mentioning type names more uniform
This avoids additional translatable strings for each distinct type, as
well as making our quoting style around type names more consistent
(namely, that we don't quote type names). This continues what started
as f402b99501
.
Discussion: https://postgr.es/m/20160401170642.GA57509@alvherre.pgsql
This commit is contained in:
@ -294,7 +294,7 @@ byteain(PG_FUNCTION_ARGS)
|
||||
*/
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for type bytea")));
|
||||
errmsg("invalid input syntax for type %s", "bytea")));
|
||||
}
|
||||
}
|
||||
|
||||
@ -335,7 +335,7 @@ byteain(PG_FUNCTION_ARGS)
|
||||
*/
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for type bytea")));
|
||||
errmsg("invalid input syntax for type %s", "bytea")));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user