Commit a6b5765c authored by Michael Meskes's avatar Michael Meskes

Synced parser and keyword list.

parent fcc67563
...@@ -2233,5 +2233,9 @@ Wed, 22 Aug 2007 08:41:33 +0200 ...@@ -2233,5 +2233,9 @@ Wed, 22 Aug 2007 08:41:33 +0200
Wed, 29 Aug 2007 15:41:58 +0200 Wed, 29 Aug 2007 15:41:58 +0200
- Fixed bug in Informix define handling. - Fixed bug in Informix define handling.
Tue, 04 Sep 2007 11:13:55 +0200
- Synced parser and keyword list.
- Set ecpg library version to 6.0. - Set ecpg library version to 6.0.
- Set ecpg version to 4.4. - Set ecpg version to 4.4.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.81 2007/08/22 08:20:58 meskes Exp $ * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.82 2007/09/04 10:02:29 meskes Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -86,7 +86,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -86,7 +86,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"commit", COMMIT}, {"commit", COMMIT},
{"committed", COMMITTED}, {"committed", COMMITTED},
{"concurrently", CONCURRENTLY}, {"concurrently", CONCURRENTLY},
{"concurrently", CONCURRENTLY}, {"configuration", CONFIGURATION},
{"connection", CONNECTION}, {"connection", CONNECTION},
{"constraint", CONSTRAINT}, {"constraint", CONSTRAINT},
{"constraints", CONSTRAINTS}, {"constraints", CONSTRAINTS},
...@@ -123,6 +123,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -123,6 +123,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"delimiter", DELIMITER}, {"delimiter", DELIMITER},
{"delimiters", DELIMITERS}, {"delimiters", DELIMITERS},
{"desc", DESC}, {"desc", DESC},
{"dictionary", DICTIONARY},
{"disable", DISABLE_P}, {"disable", DISABLE_P},
{"discard", DISCARD}, {"discard", DISCARD},
{"distinct", DISTINCT}, {"distinct", DISTINCT},
...@@ -217,6 +218,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -217,6 +218,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"location", LOCATION}, {"location", LOCATION},
{"lock", LOCK_P}, {"lock", LOCK_P},
{"login", LOGIN_P}, {"login", LOGIN_P},
{"mapping", MAPPING},
{"match", MATCH}, {"match", MATCH},
{"maxvalue", MAXVALUE}, {"maxvalue", MAXVALUE},
{"minute", MINUTE_P}, {"minute", MINUTE_P},
...@@ -265,6 +267,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -265,6 +267,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"overlaps", OVERLAPS}, {"overlaps", OVERLAPS},
{"owned", OWNED}, {"owned", OWNED},
{"owner", OWNER}, {"owner", OWNER},
{"parser", PARSER},
{"partial", PARTIAL}, {"partial", PARTIAL},
{"password", PASSWORD}, {"password", PASSWORD},
{"placing", PLACING}, {"placing", PLACING},
...@@ -307,6 +310,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -307,6 +310,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"savepoint", SAVEPOINT}, {"savepoint", SAVEPOINT},
{"schema", SCHEMA}, {"schema", SCHEMA},
{"scroll", SCROLL}, {"scroll", SCROLL},
{"search", SEARCH},
{"second", SECOND_P}, {"second", SECOND_P},
{"security", SECURITY}, {"security", SECURITY},
{"select", SELECT}, {"select", SELECT},
...@@ -342,6 +346,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = { ...@@ -342,6 +346,7 @@ static const ScanKeyword ScanPGSQLKeywords[] = {
{"temp", TEMP}, {"temp", TEMP},
{"template", TEMPLATE}, {"template", TEMPLATE},
{"temporary", TEMPORARY}, {"temporary", TEMPORARY},
{"text", TEXT_P},
{"then", THEN}, {"then", THEN},
{"time", TIME}, {"time", TIME},
{"timestamp", TIMESTAMP}, {"timestamp", TIMESTAMP},
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.155 2007/08/29 13:58:13 meskes Exp $ * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.156 2007/09/04 10:02:29 meskes Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1152,7 +1152,7 @@ lex_init(void) ...@@ -1152,7 +1152,7 @@ lex_init(void)
/* initialize literal buffer to a reasonable but expansible size */ /* initialize literal buffer to a reasonable but expansible size */
if (literalbuf == NULL) if (literalbuf == NULL)
{ {
literalalloc = 128; literalalloc = 1024;
literalbuf = (char *) malloc(literalalloc); literalbuf = (char *) malloc(literalalloc);
} }
startlit(); startlit();
......
This diff is collapsed.
...@@ -76,7 +76,7 @@ int main(int argc, char *argv[]) ...@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
{ ECPGtrans(__LINE__, NULL, "commit");} { ECPGtrans(__LINE__, NULL, "commit");}
#line 48 "thread.pgc" #line 48 "thread.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast( timeofday () as timestamp ) , thread TEXT not null , iteration integer not null , primary key( thread , iteration ) ) ", ECPGt_EOIT, ECPGt_EORT);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast( timeofday () as timestamp ) , thread text not null , iteration integer not null , primary key( thread , iteration ) ) ", ECPGt_EOIT, ECPGt_EORT);}
#line 53 "thread.pgc" #line 53 "thread.pgc"
{ ECPGtrans(__LINE__, NULL, "commit");} { ECPGtrans(__LINE__, NULL, "commit");}
......
...@@ -77,7 +77,7 @@ int main(int argc, char *argv[]) ...@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
{ ECPGtrans(__LINE__, NULL, "commit");} { ECPGtrans(__LINE__, NULL, "commit");}
#line 49 "thread_implicit.pgc" #line 49 "thread_implicit.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast( timeofday () as timestamp ) , thread TEXT not null , iteration integer not null , primary key( thread , iteration ) ) ", ECPGt_EOIT, ECPGt_EORT);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test_thread ( tstamp timestamp not null default cast( timeofday () as timestamp ) , thread text not null , iteration integer not null , primary key( thread , iteration ) ) ", ECPGt_EOIT, ECPGt_EORT);}
#line 54 "thread_implicit.pgc" #line 54 "thread_implicit.pgc"
{ ECPGtrans(__LINE__, NULL, "commit");} { ECPGtrans(__LINE__, NULL, "commit");}
......
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