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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy