postgresql/src/pl/tcl
Tom Lane 1b00dd0ea0 Improve minor error-handling details in pltcl.
Don't ask Tcl_GetIndexFromObj to store an error message in the interpreter
in cases where the next argument isn't necessarily one of the options
we're asking it to check for.  At best that is a waste of time, and at
worst it might cause an inappropriate error result to get left behind.

Be sure to check for valid syntax (ie, no command arguments) in
pltcl_SPI_lastoid.

Extracted from a larger and otherwise-unrelated patch.

Jim Nasby

Patch: <f2134651-14b3-efeb-f274-c69f3c084031@BlueTreble.com>
2016-11-05 17:32:29 -04:00
..
expected Make pltcl regression tests safe for Danish locale. 2016-07-21 14:24:07 -04:00
modules Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
po Translation updates 2016-08-08 11:08:00 -04:00
sql Make pltcl regression tests safe for Danish locale. 2016-07-21 14:24:07 -04:00
.gitignore Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE. 2016-03-25 16:54:52 -04:00
generate-pltclerrcodes.pl Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE. 2016-03-25 16:54:52 -04:00
Makefile Fix PL/Tcl for vpath builds. 2016-03-25 17:13:03 -04:00
nls.mk Translation updates 2016-05-09 10:04:41 -04:00
pltcl--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltcl--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltcl.c Improve minor error-handling details in pltcl. 2016-11-05 17:32:29 -04:00
pltcl.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltclu--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00