diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-01-18 16:08:20 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-01-18 16:08:20 -0300 |
commit | 9a34123bc315e55b33038464422ef1cd2b67dab2 (patch) | |
tree | 9b1e2e9189e7b60e7eb2876e365c5a950a6aa228 /src/backend/utils/adt/bool.c | |
parent | 716c7d4b242f0a64ad8ac4dc48c6fed6557ba12c (diff) | |
download | postgresql-9a34123bc315e55b33038464422ef1cd2b67dab2.tar.gz postgresql-9a34123bc315e55b33038464422ef1cd2b67dab2.zip |
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 f402b9950120.
Discussion: https://postgr.es/m/20160401170642.GA57509@alvherre.pgsql
Diffstat (limited to 'src/backend/utils/adt/bool.c')
-rw-r--r-- | src/backend/utils/adt/bool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/bool.c b/src/backend/utils/adt/bool.c index 5dfb30cc8e7..6c87e211407 100644 --- a/src/backend/utils/adt/bool.c +++ b/src/backend/utils/adt/bool.c @@ -150,7 +150,8 @@ boolin(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION), - errmsg("invalid input syntax for type boolean: \"%s\"", in_str))); + errmsg("invalid input syntax for type %s: \"%s\"", + "boolean", in_str))); /* not reached */ PG_RETURN_BOOL(false); |