• Tom Lane's avatar
    After transforming a CASE expr with a default argument, · 2deef968
    Tom Lane authored
    delete the default argument from the node.  This prevents the executor
    from spitting up on the untransformed argument expression.  Typical
    failure was:
    select (case f1 when 'val' then 'subst' else f1 end) from t1;
    ERROR:  copyObject: don't know how to copy 704
    2deef968
parse_expr.c 20.3 KB