Skip to content

Commit 71fee6c

Browse files
committed
ecpg: Remove trailing period from error message.
This commit improves the ecpg's error message that commit f576de1 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
1 parent 65dc30c commit 71fee6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ check_declared_list(const char *name)
596596
{
597597
if (connection)
598598
if (connection && strcmp(ptr->connection, connection) != 0)
599-
mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by declare statement %s.", connection, ptr->connection, name);
599+
mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name);
600600
connection = mm_strdup(ptr -> connection);
601601
return true;
602602
}

0 commit comments

Comments
 (0)