处理issue:开启M*协议兼容后,使用jdbc连接参数useOldAliasMetadataBehavior=false,查询语句查询结果别名与M*不一致

This commit is contained in:
lukeman
2024-10-25 11:18:18 +08:00
parent 0c6d6e2cb8
commit 26026e958d

View File

@ -637,8 +637,12 @@ void standard_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, long co
* In order to ensure the integrity of the message(T-C-Z), regardless of the value of
* u_sess->exec_cxt.executor_stop_flag, the 'T' message should be sent.
*/
if (send_tuples)
if (send_tuples) {
if ((dest->mydest == DestRemote || dest->mydest == DestRemoteExecute)) {
((DR_printtup *)dest)->target_list = queryDesc->plannedstmt->planTree->targetlist;
}
(*dest->rStartup)(dest, operation, queryDesc->tupDesc);
}
if (queryDesc->plannedstmt->bucketMap[0] != NULL) {
u_sess->exec_cxt.global_bucket_map = queryDesc->plannedstmt->bucketMap[0];