mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-06 12:27:37 +08:00
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.
31 lines
982 B
C
31 lines
982 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* analyze.h
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: analyze.h,v 1.21 2003/04/29 22:13:11 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ANALYZE_H
|
|
#define ANALYZE_H
|
|
|
|
#include "parser/parse_node.h"
|
|
|
|
|
|
extern List *parse_analyze(Node *parseTree, Oid *paramTypes, int numParams);
|
|
extern List *parse_analyze_varparams(Node *parseTree, Oid **paramTypes,
|
|
int *numParams);
|
|
extern List *parse_sub_analyze(Node *parseTree, ParseState *parentParseState);
|
|
extern List *analyzeCreateSchemaStmt(CreateSchemaStmt *stmt);
|
|
|
|
extern void CheckSelectForUpdate(Query *qry);
|
|
|
|
/* This was exported to allow ADD CONSTRAINT to make use of it */
|
|
extern char *makeObjectName(char *name1, char *name2, char *typename);
|
|
|
|
#endif /* ANALYZE_H */
|