Skip to content

Commit 5b58de1

Browse files
author
Hiroshi Inoue
committed
Allow SELECT .. FOR UPDATE in PL/pgSQL.
1 parent 7d738f9 commit 5b58de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpgsql/src/pl_exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.17 2000/01/15 22:43:25 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.18 2000/02/07 03:39:13 inoue Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -2344,7 +2344,7 @@ exec_move_row(PLpgSQL_execstate * estate,
23442344
{
23452345
if (HeapTupleIsValid(tup))
23462346
{
2347-
if (row->nfields != tupdesc->natts)
2347+
if (row->nfields != tup->t_data->t_natts)
23482348
{
23492349
elog(ERROR, "query didn't return correct # of attributes for %s",
23502350
row->refname);

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