summaryrefslogtreecommitdiff
path: root/src/include/nodes/readfuncs.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-01-07 01:08:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-01-07 01:08:48 +0000
commit4057b64f32dca9e79602ade1813e8d1ffbfa91d0 (patch)
tree2b937c14980ef71f67975eecd1a39a556c542a0c /src/include/nodes/readfuncs.h
parent1402201463d98f0ef8ab07ac7aeb06d60cf337dc (diff)
Modify readfuncs so that recursive use of stringToNode will not crash
and burn. Just for added luck, change reading of CONST nodes so that we do not need to consult pg_type rows while reading them; this means that no database access occurs during stringToNode. This requires changing the order in which const-node fields are written, which means an initdb is forced.
Diffstat (limited to 'src/include/nodes/readfuncs.h')
-rw-r--r--src/include/nodes/readfuncs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/nodes/readfuncs.h b/src/include/nodes/readfuncs.h
index f16d35ae608..116d5150fc6 100644
--- a/src/include/nodes/readfuncs.h
+++ b/src/include/nodes/readfuncs.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: readfuncs.h,v 1.9 2000/01/26 05:58:17 momjian Exp $
+ * $Id: readfuncs.h,v 1.10 2001/01/07 01:08:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,7 +19,7 @@
/*
* prototypes for functions in read.c (the lisp token parser)
*/
-extern char *lsptok(char *string, int *length);
+extern char *pg_strtok(int *length);
extern char *debackslash(char *token, int length);
extern void *nodeRead(bool read_car_only);