!2339 修复baselocatortype为'\0',导致nodeToString输出字符串被截断的问题
Merge pull request !2339 from pengjiong/fix_col
This commit is contained in:
@ -1238,7 +1238,9 @@ static void _outExecNodes(StringInfo str, ExecNodes* node)
|
||||
WRITE_NODE_FIELD(primarynodelist);
|
||||
WRITE_NODE_FIELD(nodeList);
|
||||
_outDistribution(str, &node->distribution);
|
||||
WRITE_CHAR_FIELD(baselocatortype);
|
||||
if (node->baselocatortype != '\0') {
|
||||
WRITE_CHAR_FIELD(baselocatortype);
|
||||
}
|
||||
WRITE_NODE_FIELD(en_expr);
|
||||
WRITE_OID_FIELD(en_relid);
|
||||
|
||||
|
||||
@ -3921,7 +3921,9 @@ static ExecNodes* _readExecNodes(void)
|
||||
READ_NODE_FIELD(nodeList);
|
||||
Distribution* distribution = _readDistribution();
|
||||
ng_set_distribution(&local_node->distribution, distribution);
|
||||
READ_CHAR_FIELD(baselocatortype);
|
||||
IF_EXIST(baselocatortype) {
|
||||
READ_CHAR_FIELD(baselocatortype);
|
||||
}
|
||||
READ_NODE_FIELD(en_expr);
|
||||
READ_OID_FIELD(en_relid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user