diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-08-13 20:50:05 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-08-13 20:50:05 +0000 |
commit | cfe380a6dd0dc7335ad83c3e0789357dc554fad3 (patch) | |
tree | 68d9018bd80c1a7b411248eccfbc2c6994acfc80 /src/pl/plpython/plpython.c | |
parent | 501255114d0266a599c2b52fdf15fe8cac0a4650 (diff) | |
download | postgresql-cfe380a6dd0dc7335ad83c3e0789357dc554fad3.tar.gz postgresql-cfe380a6dd0dc7335ad83c3e0789357dc554fad3.zip |
Augment test coverage in PL/Python, especially for error conditions.
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index e68c89080c3..c52e67e6626 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,7 +1,7 @@ /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.123 2009/07/20 08:01:06 petere Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.124 2009/08/13 20:50:05 petere Exp $ * ********************************************************************* */ @@ -538,7 +538,7 @@ PLy_modify_tuple(PLyProcedure *proc, PyObject *pltd, TriggerData *tdata, platt = PyList_GetItem(plkeys, i); if (!PyString_Check(platt)) ereport(ERROR, - (errmsg("name of TD[\"new\"] attribute at ordinal position %d is not a string", i))); + (errmsg("TD[\"new\"] dictionary key at ordinal position %d is not a string", i))); attn = SPI_fnumber(tupdesc, PyString_AsString(platt)); if (attn == SPI_ERROR_NOATTRIBUTE) ereport(ERROR, |