Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8eac198

Browse files
committed
Repair incorrect indexing for atttypmod, per Brad McLean.
1 parent 57892e7 commit 8eac198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpython/plpython.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
3030
*
3131
* IDENTIFICATION
32-
* $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.29 2003/01/31 22:35:24 tgl Exp $
32+
* $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.30 2003/02/13 23:06:15 tgl Exp $
3333
*
3434
*********************************************************************
3535
*/
@@ -630,7 +630,7 @@ PLy_modify_tuple(PLyProcedure * proc, PyObject * pltd, TriggerData *tdata,
630630
modvalues[j] = FunctionCall3(&proc->result.out.r.atts[atti].typfunc,
631631
CStringGetDatum(src),
632632
ObjectIdGetDatum(proc->result.out.r.atts[atti].typelem),
633-
Int32GetDatum(tupdesc->attrs[j]->atttypmod));
633+
Int32GetDatum(tupdesc->attrs[atti]->atttypmod));
634634
modnulls[j] = ' ';
635635

636636
Py_DECREF(plstr);

0 commit comments

Comments
 (0)