From 33d4c828fde8a21c90c4fb16721be904c719338a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 9 Sep 2003 23:22:21 +0000 Subject: Some "feature not supported" errors are better syntax errors, because the feature they complain about isn't a feature or cannot be implemented without definitional changes. --- src/backend/executor/execQual.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/executor/execQual.c') diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c index d05eedceecf..9c0ba76ecd9 100644 --- a/src/backend/executor/execQual.c +++ b/src/backend/executor/execQual.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.142 2003/08/17 23:43:25 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.143 2003/09/09 23:22:20 petere Exp $ * *------------------------------------------------------------------------- */ @@ -713,7 +713,7 @@ ExecMakeFunctionResult(FuncExprState *fcache, *isDone = ExprEndResult; else ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + (errcode(ERRCODE_SYNTAX_ERROR), errmsg("set-valued function called in context that cannot accept a set"))); return (Datum) 0; } @@ -757,7 +757,7 @@ ExecMakeFunctionResult(FuncExprState *fcache, */ if (isDone == NULL) ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + (errcode(ERRCODE_SYNTAX_ERROR), errmsg("set-valued function called in context that cannot accept a set"))); /* @@ -944,7 +944,7 @@ ExecMakeTableFunctionResult(ExprState *funcexpr, /* We don't allow sets in the arguments of the table function */ if (argDone != ExprSingleResult) ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + (errcode(ERRCODE_SYNTAX_ERROR), errmsg("set-valued function called in context that cannot accept a set"))); /* @@ -2955,7 +2955,7 @@ ExecTargetList(List *targetlist, /* We have a set-valued expression in the tlist */ if (isDone == NULL) ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + (errcode(ERRCODE_SYNTAX_ERROR), errmsg("set-valued function called in context that cannot accept a set"))); if (itemIsDone[resind] == ExprMultipleResult) { -- cgit v1.2.3