From: Tom Lane Date: Thu, 13 Feb 2003 23:06:19 +0000 (+0000) Subject: Repair incorrect indexing for atttypmod, per Brad McLean. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=78ba12f87a5093b65bc6ecd40420b446f78df360;p=users%2Fbernd%2Fpostgres.git Repair incorrect indexing for atttypmod, per Brad McLean. --- diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 36dde455ac..08f2f5022c 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -630,7 +630,7 @@ PLy_modify_tuple(PLyProcedure * proc, PyObject * pltd, TriggerData *tdata, modvalues[j] = FunctionCall3(&proc->result.out.r.atts[atti].typfunc, CStringGetDatum(src), ObjectIdGetDatum(proc->result.out.r.atts[atti].typelem), - Int32GetDatum(tupdesc->attrs[j]->atttypmod)); + Int32GetDatum(tupdesc->attrs[atti]->atttypmod)); modnulls[j] = ' '; Py_DECREF(plstr);