• Tom Lane's avatar
    In PL/Tcl, make database errors return additional info in the errorCode. · fb8d2a7f
    Tom Lane authored
    Tcl has a convention for returning additional info about an error in a
    global variable named errorCode.  Up to now PL/Tcl has ignored that,
    but this patch causes database errors caught by PL/Tcl to fill in
    errorCode with useful information from the ErrorData struct.
    
    Jim Nasby, reviewed by Pavel Stehule and myself
    fb8d2a7f
pltcl.c 81.2 KB