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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user