Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit337f802

Browse files
committed
Fix slightly-wrong syntax error messages from bootstrap parser, as per
report from Tom Cook.
1 parent7e64dbc commit337f802

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/bootstrap/bootscanner.l

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.35 2004/06/03 02:08:02 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.36 2004/06/09 19:49:56 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -45,7 +45,7 @@
4545
#definefprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
4646

4747

48-
staticintyyline;/* keep track of the line number for error reporting*/
48+
staticintyyline =1;/* line number for error reporting*/
4949

5050
%}
5151

@@ -135,7 +135,7 @@ insert{ return(INSERT_TUPLE); }
135135
%%
136136

137137
void
138-
yyerror(constchar *str)
138+
yyerror(constchar *message)
139139
{
140-
elog(ERROR,"syntax errorat line %d: unexpected token\"%s\"", yyline, str);
140+
elog(ERROR,"%sat line %d", message, yyline);
141141
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp