!2017 禁止smp下的rownum

Merge pull request !2017 from junhangis/junhangis/smp
This commit is contained in:
opengauss-bot
2022-08-07 00:53:07 +00:00
committed by Gitee

View File

@ -928,7 +928,13 @@ static bool contain_unsupport_expression(Node* expr, void* context)
}
}
} break;
case T_Rownum: {
sprintf_rc = sprintf_s(u_sess->opt_cxt.not_shipping_info->not_shipping_reason,
NOTPLANSHIPPING_LENGTH,
"Rownum can not be shipped.");
securec_check_ss_c(sprintf_rc, "\0", "\0");
cxt->current_shippable = false;
} break;
default:
/* Record return type is not stream supported */
if (exprType(expr) == RECORDOID) {