diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-28 23:09:48 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-28 23:09:48 +0000 |
| commit | a2794623d292f7bbfe3134d1407281055acce584 (patch) | |
| tree | 106758200708577aaac72ed926f0f4faa3cda36c /src/include/nodes/makefuncs.h | |
| parent | 6734182c169a1ecb74dd8495004e896ee4519adb (diff) | |
Extend the parser location infrastructure to include a location field in
most node types used in expression trees (both before and after parse
analysis). This allows us to place an error cursor in many situations
where we formerly could not, because the information wasn't available
beyond the very first level of parse analysis. There's a fair amount
of work still to be done to persuade individual ereport() calls to actually
include an error location, but this gets the initdb-forcing part of the
work out of the way; and the situation is already markedly better than
before for complaints about unimplementable implicit casts, such as
CASE and UNION constructs with incompatible alternative data types.
Per my proposal of a few days ago.
Diffstat (limited to 'src/include/nodes/makefuncs.h')
| -rw-r--r-- | src/include/nodes/makefuncs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/nodes/makefuncs.h b/src/include/nodes/makefuncs.h index eca8feee977..d8ffa442247 100644 --- a/src/include/nodes/makefuncs.h +++ b/src/include/nodes/makefuncs.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/makefuncs.h,v 1.61 2008/01/01 19:45:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/nodes/makefuncs.h,v 1.62 2008/08/28 23:09:48 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -49,7 +49,7 @@ extern Const *makeNullConst(Oid consttype, int32 consttypmod); extern Node *makeBoolConst(bool value, bool isnull); -extern Expr *makeBoolExpr(BoolExprType boolop, List *args); +extern Expr *makeBoolExpr(BoolExprType boolop, List *args, int location); extern Alias *makeAlias(const char *aliasname, List *colnames); |
