summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2000-02-07 03:39:13 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2000-02-07 03:39:13 +0000
commit5b58de124e038ac8a6d2929686b11a31956f7c00 (patch)
tree8cae9620d9b86506a254b71670e8dff29686f027 /src
parent7d738f958673fc2bd5676ac492606486499595df (diff)
Allow SELECT .. FOR UPDATE in PL/pgSQL.
Diffstat (limited to 'src')
-rw-r--r--src/pl/plpgsql/src/pl_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c
index 48223ffab7b..d58c9893f71 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);