aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-09 19:49:56 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-09 19:49:56 +0000
commit337f802460cf51c4d7a6628a263bea7789e57e11 (patch)
treee159cab330ffd90437b019cf6c97b21f0ed46553 /src/backend
parent7e64dbc6b5e516a2510ae41c8c7999d1d8d25872 (diff)
downloadpostgresql-337f802460cf51c4d7a6628a263bea7789e57e11.tar.gz
postgresql-337f802460cf51c4d7a6628a263bea7789e57e11.zip
Fix slightly-wrong syntax error messages from bootstrap parser, as per
report from Tom Cook.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/bootstrap/bootscanner.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/bootstrap/bootscanner.l b/src/backend/bootstrap/bootscanner.l
index 57b872231d4..dbc568a6761 100644
--- a/src/backend/bootstrap/bootscanner.l
+++ b/src/backend/bootstrap/bootscanner.l
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.35 2004/06/03 02:08:02 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.36 2004/06/09 19:49:56 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -45,7 +45,7 @@
#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
-static int yyline; /* keep track of the line number for error reporting */
+static int yyline = 1; /* line number for error reporting */
%}
@@ -135,7 +135,7 @@ insert { return(INSERT_TUPLE); }
%%
void
-yyerror(const char *str)
+yyerror(const char *message)
{
- elog(ERROR, "syntax error at line %d: unexpected token \"%s\"", yyline, str);
+ elog(ERROR, "%s at line %d", message, yyline);
}