From 53cedcac22bca29bb6ac766b04d5dd08db77ac03 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 3 May 2002 00:32:19 +0000 Subject: Retire xlateSqlType/xlateSqlFunc; all type name translations are now handled as special productions. This is needed to keep us honest about user-schema type names that happen to coincide with system type names. Per pghackers discussion 24-Apr. To avoid bloating the keyword list too much, I removed the translations for datetime, timespan, and lztext, all of which were slated for destruction several versions back anyway. --- src/include/parser/gramparse.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include/parser/gramparse.h') diff --git a/src/include/parser/gramparse.h b/src/include/parser/gramparse.h index 3a1c9353bbf..1e4b633c225 100644 --- a/src/include/parser/gramparse.h +++ b/src/include/parser/gramparse.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: gramparse.h,v 1.21 2002/04/20 21:56:15 petere Exp $ + * $Id: gramparse.h,v 1.22 2002/05/03 00:32:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,7 @@ #define GRAMPARSE_H #include "lib/stringinfo.h" +#include "nodes/parsenodes.h" /* from parser.c */ extern int yylex(void); @@ -30,9 +31,8 @@ extern void yyerror(const char *message); extern void parser_init(Oid *typev, int nargs); extern Oid param_type(int t); extern int yyparse(void); -extern char *xlateSqlFunc(char *name); -extern char *xlateSqlType(char *name); extern List *SystemFuncName(char *name); -bool exprIsNullConstant(Node *arg); +extern TypeName *SystemTypeName(char *name); +extern bool exprIsNullConstant(Node *arg); #endif /* GRAMPARSE_H */ -- cgit v1.2.3