Skip to content

Commit

Permalink
change code places
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhibai Song committed Nov 12, 2023
1 parent 402f81e commit d3108d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/backend/parser/analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,19 +705,19 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
((CallStmt *) stmt->execStmt)->attrnos = attrnos;
((CallStmt *) stmt->execStmt)->retdesc = NULL;
((CallStmt *) stmt->execStmt)->dest = NULL;
qry->utilityStmt = callStmtQry->utilityStmt;
((CallStmt *) stmt->execStmt)->exec_insert_icolumns = icolumns;
((CallStmt *) stmt->execStmt)->exec_insert_stmt_cols = stmt->cols;
((CallStmt *) stmt->execStmt)->rd_length = list_length(pstate->p_rtable);
qry->utilityStmt = callStmtQry->utilityStmt;
}
break;
case T_DoStmt:
((DoStmt *) stmt->execStmt)->relation = pstate->p_target_relation->rd_id;
((DoStmt *) stmt->execStmt)->attrnos = attrnos;
qry->utilityStmt = stmt->execStmt;
((DoStmt *) stmt->execStmt)->exec_insert_icolumns = icolumns;
((DoStmt *) stmt->execStmt)->exec_insert_stmt_cols = stmt->cols;
((DoStmt *) stmt->execStmt)->rd_length = list_length(pstate->p_rtable);
((DoStmt *) stmt->execStmt)->relation = pstate->p_target_relation->rd_id;
((DoStmt *) stmt->execStmt)->attrnos = attrnos;
((DoStmt *) stmt->execStmt)->exec_insert_icolumns = icolumns;
((DoStmt *) stmt->execStmt)->exec_insert_stmt_cols = stmt->cols;
((DoStmt *) stmt->execStmt)->rd_length = list_length(pstate->p_rtable);
qry->utilityStmt = stmt->execStmt;
break;
default:
ereport(ERROR,
Expand Down

0 comments on commit d3108d7

Please sign in to comment.