Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 125a5b9

Browse files
committed
Clarify to the translator that plpgsql_yyerror() deals with the translation
of "syntax error", not the literal string. This same change was made in the backend a while ago; but it applies to plpgsql as well.
1 parent 15a3fe6 commit 125a5b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pl/plpgsql/src/scan.l

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.69 2009/04/19 21:50:09 tgl Exp $
12+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.70 2009/06/10 22:34:11 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -441,7 +441,7 @@ plpgsql_yyerror(const char *message)
441441
{
442442
ereport(ERROR,
443443
(errcode(ERRCODE_SYNTAX_ERROR),
444-
/* translator: %s is typically "syntax error" */
444+
/* translator: %s is typically the translation of "syntax error" */
445445
errmsg("%s at end of input", _(message)),
446446
internalerrposition(cursorpos),
447447
internalerrquery(scanstr)));
@@ -450,7 +450,7 @@ plpgsql_yyerror(const char *message)
450450
{
451451
ereport(ERROR,
452452
(errcode(ERRCODE_SYNTAX_ERROR),
453-
/* translator: first %s is typically "syntax error" */
453+
/* translator: first %s is typically the translation of "syntax error" */
454454
errmsg("%s at or near \"%s\"", _(message), loc),
455455
internalerrposition(cursorpos),
456456
internalerrquery(scanstr)));

0 commit comments

Comments
 (0)