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

Commitc78e195

Browse files
committed
Suppress unused-variable warning in non-Assert compilations.
1 parent2cd23b6 commitc78e195

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/backend/parser/analyze.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$Id: analyze.c,v 1.175 2001/01/08 20:54:24 momjian Exp $
9+
*$Id: analyze.c,v 1.176 2001/01/19 06:50:23 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -423,10 +423,9 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
423423
foreach(tl,qry->targetList)
424424
{
425425
TargetEntry*tle= (TargetEntry*)lfirst(tl);
426-
Resdom*resnode=tle->resdom;
427426
Ident*id;
428427

429-
Assert(!resnode->resjunk);
428+
Assert(!tle->resdom->resjunk);
430429
if (icolumns==NIL||attnos==NIL)
431430
elog(ERROR,"INSERT has more expressions than target columns");
432431
id= (Ident*)lfirst(icolumns);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp