select_into_fix
Offering: openGaussDev More detail: fix the lost of targetlist data Match-id-18da7d885125b5bbd6c1cbe3b1588751ca89f554
This commit is contained in:
@ -2134,13 +2134,6 @@ static Node* transformSelectIntoVarList(ParseState* pstate, SelectIntoVarList* s
|
||||
ereport(ERROR, (errcode(ERRCODE_INVALID_OPERATION), errmsg("unexpected non-SELECT command in SubLink")));
|
||||
}
|
||||
sublink->subselect = (Node*)qtree;
|
||||
|
||||
if (list_length(qtree->targetList) != list_length(sis->userVarList)) {
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("number of variables must equal the number of columns"),
|
||||
parser_errposition(pstate, sublink->location)));
|
||||
}
|
||||
return (Node *)sis;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user