mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Copy RowMark node (it's for (-:)) FOR UPDATE).
This commit is contained in:
parent
12be3e08f1
commit
1f37905681
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.51 1998/12/04 15:33:33 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.52 1999/01/21 16:38:36 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1540,6 +1540,17 @@ _copyRangeTblEntry(RangeTblEntry *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static RowMark *
|
||||
_copyRowMark(RowMark *from)
|
||||
{
|
||||
RowMark *newnode = makeNode(RowMark);
|
||||
|
||||
newnode->rti = from->rti;
|
||||
newnode->info = from->info;
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static SortClause *
|
||||
_copySortClause(SortClause *from)
|
||||
{
|
||||
@ -1623,6 +1634,8 @@ _copyQuery(Query *from)
|
||||
Node_Copy(from, newnode, limitOffset);
|
||||
Node_Copy(from, newnode, limitCount);
|
||||
|
||||
Node_Copy(from, newnode, rowMark);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
@ -1846,6 +1859,9 @@ copyObject(void *from)
|
||||
case T_RangeTblEntry:
|
||||
retval = _copyRangeTblEntry(from);
|
||||
break;
|
||||
case T_RowMark:
|
||||
retval = _copyRowMark(from);
|
||||
break;
|
||||
case T_SortClause:
|
||||
retval = _copySortClause(from);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user