diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog
index 1b3d619017c8a67a139620aec2fa62dddbcb385d..78c47d31a6d8e405ca737909940c1cd56788fbe7 100644
--- a/src/interfaces/ecpg/ChangeLog
+++ b/src/interfaces/ecpg/ChangeLog
@@ -2358,6 +2358,10 @@ Tue, 20 May 2008 17:31:01 +0200
 	- Made ecpg parser use backend provided keyword list. One less file to
 	  sync manually.
 	- Changed whenever test so exit value is 0.
+
+Wed, 04 Jun 2008 14:22:30 +0200
+
+	- Added lost symbol SQL to list of allowed variable names.
 	- Set pgtypes library version to 3.1.
 	- Set compat library version to 3.1.
 	- Set ecpg library version to 6.2.
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index 3d39b74580ca03ad172a78732d0f25b519799329..661a36ea675a8525abb26da82cedf140d98c0227 100644
--- a/src/interfaces/ecpg/preproc/preproc.y
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.366 2008/05/20 23:17:32 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.367 2008/06/04 12:23:34 meskes Exp $ */
 
 /* Copyright comment */
 %{
@@ -6316,6 +6316,7 @@ ECPGKeywords_vanames:  SQL_BREAK		{ $$ = make_str("break"); }
 		| SQL_RETURNED_OCTET_LENGTH	{ $$ = make_str("returned_octet_length"); }
 		| SQL_SCALE					{ $$ = make_str("scale"); }
 		| SQL_SECTION				{ $$ = make_str("section"); }
+		| SQL_SQL				{ $$ = make_str("sql"); }
 		| SQL_SQLERROR				{ $$ = make_str("sqlerror"); }
 		| SQL_SQLPRINT				{ $$ = make_str("sqlprint"); }
 		| SQL_SQLWARNING			{ $$ = make_str("sqlwarning"); }