git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7f5b043) | patch
In PL/Tcl tests, don't choke if optional error fields are missing.
2017年1月13日 21:59:52 +0000 (16:59 -0500)
2017年1月13日 21:59:52 +0000 (16:59 -0500)
commit 5b29e6b688d1e783a098aa24f9e795f8de798a87
In PL/Tcl tests, don't choke if optional error fields are missing.

This fixes a portability issue introduced by commit 961bed020: 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.
src/pl/tcl/expected/pltcl_setup.out diff | blob | blame | history
src/pl/tcl/sql/pltcl_setup.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /