Commit b14158f4 authored by Michael Meskes's avatar Michael Meskes

SQL defines are only used in SQL space in Informix mode.

parent 5b2f4aff
...@@ -1850,6 +1850,10 @@ Tue Jul 20 09:15:21 CEST 2004 ...@@ -1850,6 +1850,10 @@ Tue Jul 20 09:15:21 CEST 2004
- Synced parser and keyword list. - Synced parser and keyword list.
- Fixed handling of cyclic defines. - Fixed handling of cyclic defines.
Mon Jul 26 09:04:53 CEST 2004
- SQL defines are only used in SQL space in Informix mode.
- Set pgtypes library version to 1.2. - Set pgtypes library version to 1.2.
- Set ecpg version to 3.2.0. - Set ecpg version to 3.2.0.
- Set compat library version to 1.2. - Set compat library version to 1.2.
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.130 2004/07/20 18:06:41 meskes Exp $ * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.131 2004/07/26 10:28:28 meskes Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -693,6 +693,13 @@ cppline {space}*#(.*\\{space})+.* ...@@ -693,6 +693,13 @@ cppline {space}*#(.*\\{space})+.*
ScanKeyword *keyword; ScanKeyword *keyword;
struct _defines *ptr; struct _defines *ptr;
if (INFORMIX_MODE)
{
/* Informix uses SQL defines only in SQL space */
ptr = NULL;
}
else
{
/* is it a define? */ /* is it a define? */
for (ptr = defines; ptr; ptr = ptr->next) for (ptr = defines; ptr; ptr = ptr->next)
{ {
...@@ -713,6 +720,7 @@ cppline {space}*#(.*\\{space})+.* ...@@ -713,6 +720,7 @@ cppline {space}*#(.*\\{space})+.*
break; break;
} }
} }
}
if (ptr == NULL) if (ptr == NULL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment