From 9bc77c45199c7d2e525cd5b1457d5a57f6e9edb0 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 19 May 2015 21:07:28 +0200 Subject: Various fixes around ON CONFLICT for rule deparsing. Neither the deparsing of the new alias for INSERT's target table, nor of the inference clause was supported. Also fixup a typo in an error message. Add regression tests to test those code paths. Author: Peter Geoghegan --- src/backend/parser/parse_clause.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/parser/parse_clause.c') diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c index c8af5ab1d05..f8eebfe8c3e 100644 --- a/src/backend/parser/parse_clause.c +++ b/src/backend/parser/parse_clause.c @@ -2765,7 +2765,7 @@ transformOnConflictArbiter(ParseState *pstate, ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("ON CONFLICT DO UPDATE requires inference specification or constraint name"), - errhint("For example, ON CONFLICT ON CONFLICT ()."), + errhint("For example, ON CONFLICT ()."), parser_errposition(pstate, exprLocation((Node *) onConflictClause)))); -- cgit v1.2.3