• Tom Lane's avatar
    In PL/Tcl tests, don't choke if optional error fields are missing. · 5b29e6b6
    Tom Lane authored
    This fixes a portability issue introduced by commit 961bed02: with a
    compiler that doesn't support PG_FUNCNAME_MACRO, the "funcname" field of
    errorCode won't be provided, leading to a failure of the unset command.
    I added -nocomplain to the unset commands for filename and lineno too, just
    in case, though I know of no platform that wouldn't populate those fields.
    (BTW, -nocomplain is new in Tcl 8.4, but fortunately we dropped support
    for pre-8.4 Tcl some time ago.)
    
    Per buildfarm member pademelon.
    5b29e6b6
pltcl_setup.sql 17.1 KB