1
0
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:
Bruce Momjian
1998-01-07 08:08:08 +00:00
parent 56466049d6
commit c01a56daf5
3 changed files with 10 additions and 10 deletions

View File

@ -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++;