• Tom Lane's avatar
    Improve parser error location for cases where an INSERT or UPDATE command · 078aaf79
    Tom Lane authored
    supplies an expression that can't be coerced to the target column type.
    The code previously attempted to point at the target column name, which
    doesn't work at all in an INSERT with omitted column name list, and is
    also not remarkably helpful when the problem is buried somewhere in a
    long INSERT-multi-VALUES command.  Make it point at the failed expression
    instead.
    078aaf79
parse_target.c 39.1 KB