diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-29 22:13:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-29 22:13:11 +0000 |
commit | aa282d44464df0fbfa0672dc353d36734ec1092e (patch) | |
tree | dbf42be31346c6716bc33e73e801cda670fc60e4 /src/include/parser/parser.h | |
parent | 19141f558411e96446294baf240eaeccf6d68b64 (diff) | |
download | postgresql-aa282d44464df0fbfa0672dc353d36734ec1092e.tar.gz postgresql-aa282d44464df0fbfa0672dc353d36734ec1092e.zip |
Infrastructure for deducing Param types from context, in the same way
that the types of untyped string-literal constants are deduced (ie,
when coerce_type is applied to 'em, that's what the type must be).
Remove the ancient hack of storing the input Param-types array as a
global variable, and put the info into ParseState instead. This touches
a lot of files because of adjustment of routine parameter lists, but
it's really not a large patch. Note: PREPARE statement still insists on
exact specification of parameter types, but that could easily be relaxed
now, if we wanted to do so.
Diffstat (limited to 'src/include/parser/parser.h')
-rw-r--r-- | src/include/parser/parser.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/parser/parser.h b/src/include/parser/parser.h index 42d82869f08..e5e5bddfafc 100644 --- a/src/include/parser/parser.h +++ b/src/include/parser/parser.h @@ -1,21 +1,19 @@ /*------------------------------------------------------------------------- * * parser.h - * + * Definitions for the "raw" parser (lex and yacc phases only) * * * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parser.h,v 1.14 2003/04/27 20:09:44 tgl Exp $ + * $Id: parser.h,v 1.15 2003/04/29 22:13:11 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef PARSER_H #define PARSER_H -#include "parser/parse_node.h" - -extern List *parser(const char *str, Oid *typev, int nargs); +extern List *raw_parser(const char *str); #endif /* PARSER_H */ |