把target_list 中的这一段改变一下:
复制代码
| a_expr IDENT
{
$$ = makeNode(ResTarget);
$$->name = $2;
$$->indirection = NIL;
$$->val = (Node *)$1;
$$->location = @1;
}
复制代码
变成:
复制代码
| a_expr IDENT
{
$$ = makeNode(ResTarget);
$$->name = $2;
$$->indirection = NIL;
$$->val = (Node *)$1;
$$->location = @1;
fprintf(stderr,"target_list,IDENT,%s\n",$2);
}
复制代码
psql执行:select id myid from a6;
后台出现:target_list, IDENT,myid
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/09/05/2672152.html,如需转载请自行联系原作者