1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Fix yet another bug in ON CONFLICT rule deparsing.

Expand testing of rule deparsing a good bit, it's evidently needed.

Author: Peter Geoghegan, Andres Freund
Discussion: CAM3SWZQmXxZhQC32QVEOTYfNXJBJ_Q2SDENL7BV14Cq-zL0FLg@mail.gmail.com
This commit is contained in:
Andres Freund
2015-05-23 02:16:24 +02:00
parent 631d749007
commit 284bef2977
3 changed files with 75 additions and 5 deletions

View File

@ -5500,7 +5500,7 @@ get_insert_query_def(Query *query, deparse_context *context)
get_rule_expr(confl->arbiterWhere, context, false);
}
}
else
else if (confl->constraint != InvalidOid)
{
char *constraint = get_constraint_name(confl->constraint);