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

Commitd51d870

Browse files
author
Michael Meskes
committed
Synced parser and keyword list.
1 parentf378288 commitd51d870

File tree

3 files changed

+116
-59
lines changed

3 files changed

+116
-59
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,14 @@ Sun Mar 14 12:59:15 CET 2004
17691769
Mon Mar 29 17:02:52 CEST 2004
17701770

17711771
- Fixed possible segfault in type.c (by Juergen Cappel)
1772+
1773+
Thu Apr 22 14:13:57 CEST 2004
1774+
1775+
- Fixed double usage of allocated memory.
1776+
1777+
Thu Apr 29 16:06:37 CEST 2004
1778+
1779+
- Synced parser and keyword list.
17721780
- Set pgtypes library version to 1.2.
17731781
- Set ecpg version to 3.2.0.
17741782
- Set compat library version to 1.2.

‎src/interfaces/ecpg/preproc/keywords.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.61 2003/11/2919:52:08 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.62 2004/04/2914:08:10 meskes Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -36,6 +36,7 @@ static ScanKeyword ScanKeywords[] = {
3636
{"after",AFTER},
3737
{"aggregate",AGGREGATE},
3838
{"all",ALL},
39+
{"also",ALSO},
3940
{"alter",ALTER},
4041
{"analyse",ANALYSE},/* British spelling */
4142
{"analyze",ANALYZE},
@@ -87,6 +88,7 @@ static ScanKeyword ScanKeywords[] = {
8788
{"createdb",CREATEDB},
8889
{"createuser",CREATEUSER},
8990
{"cross",CROSS},
91+
{"csv",CSV},
9092
{"current_date",CURRENT_DATE},
9193
{"current_time",CURRENT_TIME},
9294
{"current_timestamp",CURRENT_TIMESTAMP},
@@ -176,6 +178,7 @@ static ScanKeyword ScanKeywords[] = {
176178
{"key",KEY},
177179
{"lancompiler",LANCOMPILER},
178180
{"language",LANGUAGE},
181+
{"large",LARGE_P},
179182
{"last",LAST_P},
180183
{"leading",LEADING},
181184
{"left",LEFT},
@@ -208,9 +211,11 @@ static ScanKeyword ScanKeywords[] = {
208211
{"nothing",NOTHING},
209212
{"notify",NOTIFY},
210213
{"notnull",NOTNULL},
214+
{"nowait",NOWAIT},
211215
{"null",NULL_P},
212216
{"nullif",NULLIF},
213217
{"numeric",NUMERIC},
218+
{"object",OBJECT_P},
214219
{"of",OF},
215220
{"off",OFF},
216221
{"offset",OFFSET},
@@ -239,13 +244,15 @@ static ScanKeyword ScanKeywords[] = {
239244
{"privileges",PRIVILEGES},
240245
{"procedural",PROCEDURAL},
241246
{"procedure",PROCEDURE},
247+
{"quote",QUOTE},
242248
{"read",READ},
243249
{"real",REAL},
244250
{"recheck",RECHECK},
245251
{"references",REFERENCES},
246252
{"reindex",REINDEX},
247253
{"relative",RELATIVE_P},
248254
{"rename",RENAME},
255+
{"repeatable",REPEATABLE},
249256
{"replace",REPLACE},
250257
{"reset",RESET},
251258
{"restart",RESTART},
@@ -302,6 +309,7 @@ static ScanKeyword ScanKeywords[] = {
302309
{"truncate",TRUNCATE},
303310
{"trusted",TRUSTED},
304311
{"type",TYPE_P},
312+
{"uncommitted",UNCOMMITTED},
305313
{"unencrypted",UNENCRYPTED},
306314
{"union",UNION},
307315
{"unique",UNIQUE},
@@ -359,17 +367,13 @@ ScanKeywordLookup(char *text)
359367

360368
/*
361369
* Apply an ASCII-only downcasing.We must not use tolower() since it
362-
* may produce the wrong translation in some locales (eg, Turkish),
363-
* and we don't trust isupper() very much either. In an ASCII-based
364-
* encoding the tests against A and Z are sufficient, but we also
365-
* check isupper() so that we will work correctly under EBCDIC. The
366-
* actual case conversion step should work for either ASCII or EBCDIC.
370+
* may produce the wrong translation in some locales (eg, Turkish).
367371
*/
368372
for (i=0;i<len;i++)
369373
{
370374
charch=text[i];
371375

372-
if (ch >='A'&&ch <='Z'&&isupper((unsignedchar)ch))
376+
if (ch >='A'&&ch <='Z')
373377
ch+='a'-'A';
374378
word[i]=ch;
375379
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp