mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Allow SELECT .. FOR UPDATE in PL/pgSQL.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
* procedural language
|
* procedural language
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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.
|
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||||
*
|
*
|
||||||
@ -2344,7 +2344,7 @@ exec_move_row(PLpgSQL_execstate * estate,
|
|||||||
{
|
{
|
||||||
if (HeapTupleIsValid(tup))
|
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",
|
elog(ERROR, "query didn't return correct # of attributes for %s",
|
||||||
row->refname);
|
row->refname);
|
||||||
|
Reference in New Issue
Block a user