Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f36e9f

Browse files
committed
Cleanup of target file.
1 parent0fc13f5 commit6f36e9f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/backend/parser/parse_target.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.23 1998/08/25 03:17:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.24 1998/08/25 03:22:49 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -498,12 +498,14 @@ printf("transformTargetList: decode T_Attr\n");
498498
resname= (res->name) ?res->name :strVal(lfirst(attrs));
499499
if (pstate->p_is_insert||pstate->p_is_update)
500500
{
501+
Relationrd;
501502
/*
502503
* insert or update query -- insert, update work only on one
503504
* relation, so multiple occurence of same resdomno is bogus
504505
*/
505-
relid=refnameRangeTableEntry(pstate,att->relname)->relid;
506-
resdomno=get_attnum(relid,attrname);
506+
rd=pstate->p_target_relation;
507+
Assert(rd!=NULL);
508+
resdomno=attnameAttNum(rd,res->name);
507509
}
508510
else
509511
resdomno=pstate->p_last_resno++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp