diff options
author | Fujii Masao <fujii@postgresql.org> | 2021-08-25 09:56:04 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2021-08-25 09:57:05 +0900 |
commit | 71fee6cfaca35208d266c172e63b76d37df88b77 (patch) | |
tree | f0337145535162dc6af07d388f24d96aa3d7fd77 /src | |
parent | 65dc30ced64cd17f3800ff1b73ab1d358e92efd8 (diff) | |
download | postgresql-71fee6cfaca35208d266c172e63b76d37df88b77.tar.gz |
ecpg: Remove trailing period from error message.
This commit improves the ecpg's error message that commit f576de1db1 updated,
so that it gets rid of trailing period and uppercases the command name
in the error message.
Author: Kyotaro Horiguchi
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20210819.170315.1413060634876301811.horikyota.ntt@gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/preproc/ecpg.header | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.header b/src/interfaces/ecpg/preproc/ecpg.header index efb2fb3a38..df58f1535c 100644 --- a/src/interfaces/ecpg/preproc/ecpg.header +++ b/src/interfaces/ecpg/preproc/ecpg.header @@ -596,7 +596,7 @@ check_declared_list(const char *name) { if (connection) if (connection && strcmp(ptr->connection, connection) != 0) - mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by declare statement %s.", connection, ptr->connection, name); + mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name); connection = mm_strdup(ptr -> connection); return true; } |