mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Fix for views and outnodes.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.7 1998/01/06 18:52:18 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.8 1998/01/07 08:07:58 momjian Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@ -94,7 +94,9 @@ nodeTokenType(char *token, int length)
|
||||
|
||||
retval = (*token != '.') ? T_Integer : T_Float;
|
||||
}
|
||||
else if (isalpha(*token) || *token == '_')
|
||||
/* make "" == NULL, not T_String. Is this a problem? 1998/1/7 bjm */
|
||||
else if (isalpha(*token) || *token == '_' ||
|
||||
(token[0] == '\"' && token[1] == '\"'))
|
||||
retval = ATOM_TOKEN;
|
||||
else if (*token == '(')
|
||||
retval = LEFT_PAREN;
|
||||
@ -147,8 +149,8 @@ lsptok(char *string, int *length)
|
||||
{
|
||||
for (local_str++; *local_str != '\"'; (*length)++, local_str++)
|
||||
;
|
||||
if (*length == 2)
|
||||
*length -= 2; /* if "", return zero length */
|
||||
if (*length == 1)
|
||||
*length = 0; /* if "", return zero length */
|
||||
else
|
||||
(*length)++;
|
||||
local_str++;
|
||||
|
Reference in New Issue
Block a user