diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-03-04 13:02:32 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-03-04 13:02:32 +0000 |
commit | 820984ba05b786280bafa382154eec64554f632c (patch) | |
tree | e7af3762897d0be2daed081bac4abae4c57b6a53 /src | |
parent | b966b519f5105999d7800762ccfbd9ff4e23bef1 (diff) | |
download | postgresql-820984ba05b786280bafa382154eec64554f632c.tar.gz postgresql-820984ba05b786280bafa382154eec64554f632c.zip |
Clarify to the translator that yyerror() deals with the translation of
"syntax error", not the literal string. I was previously confused on this
matter, but I have now verified that everything is translated properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 19d369a2ff9..68372919ff5 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -24,7 +24,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.148 2009/01/01 17:23:46 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.149 2009/03/04 13:02:32 petere Exp $ * *------------------------------------------------------------------------- */ @@ -880,7 +880,7 @@ yyerror(const char *message) { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - /* translator: %s is typically "syntax error" */ + /* translator: %s is typically the translation of "syntax error" */ errmsg("%s at end of input", _(message)), lexer_errposition())); } @@ -888,7 +888,7 @@ yyerror(const char *message) { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - /* translator: first %s is typically "syntax error" */ + /* translator: first %s is typically the translation of "syntax error" */ errmsg("%s at or near \"%s\"", _(message), loc), lexer_errposition())); } |