From: Hiroshi Inoue Date: Mon, 7 Feb 2000 03:39:13 +0000 (+0000) Subject: Allow SELECT .. FOR UPDATE in PL/pgSQL. X-Git-Tag: REL7_0~685 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b58de124e038ac8a6d2929686b11a31956f7c00;p=postgresql Allow SELECT .. FOR UPDATE in PL/pgSQL. --- diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 48223ffab7..d58c9893f7 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.17 2000/01/15 22:43:25 tgl Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.18 2000/02/07 03:39:13 inoue Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -2344,7 +2344,7 @@ exec_move_row(PLpgSQL_execstate * estate, { if (HeapTupleIsValid(tup)) { - if (row->nfields != tupdesc->natts) + if (row->nfields != tup->t_data->t_natts) { elog(ERROR, "query didn't return correct # of attributes for %s", row->refname);