提交 eb4dc363 编写于 作者: O obdev 提交者: wangzelin.wzl

white scan bugfix

上级 4fdec18c
......@@ -84,3 +84,4 @@ deps/3rd
compile_commands.json
test/tmp
test/var
*.ccls-cache/
......@@ -425,14 +425,14 @@ int get_merge_stmt_ora_need_privs(uint64_t user_id, const ObSqlCtx& ctx, const O
OX(source_table = merge_stmt->get_table_item_by_id(merge_stmt->get_source_table_id()));
CK(target_table != NULL && source_table != NULL);
/* first add target table */
if (TableItem::BASE_TABLE == target_table->type_ || TableItem::ALIAS_TABLE == target_table->type_ ||
target_table->is_view_table_) {
if (OB_SUCC(ret) && (TableItem::BASE_TABLE == target_table->type_ || TableItem::ALIAS_TABLE == target_table->type_ ||
target_table->is_view_table_)) {
OZ(set_privs_by_table_item_recursively(user_id, ctx, target_table, packed_privs, need_privs, check_flag));
}
/* then add source table */
OZ(ObPrivPacker::pack_raw_obj_priv(NO_OPTION, OBJ_PRIV_ID_SELECT, packed_privs));
if (TableItem::BASE_TABLE == source_table->type_ || TableItem::ALIAS_TABLE == source_table->type_ ||
source_table->is_view_table_) {
if (OB_SUCC(ret) && (TableItem::BASE_TABLE == source_table->type_ || TableItem::ALIAS_TABLE == source_table->type_ ||
source_table->is_view_table_)) {
OZ(set_privs_by_table_item_recursively(user_id, ctx, source_table, packed_privs, need_privs, check_flag));
}
return ret;
......
......@@ -114,15 +114,15 @@ public:
{
object_id_ = object_id;
}
int set_ins_col_ids(ObSEArray<uint64_t, 4> col_ids)
int set_ins_col_ids(ObSEArray<uint64_t, 4> &col_ids)
{
return ins_col_ids_.assign(col_ids);
}
int set_upd_col_ids(ObSEArray<uint64_t, 4> col_ids)
int set_upd_col_ids(ObSEArray<uint64_t, 4> &col_ids)
{
return upd_col_ids_.assign(col_ids);
}
int set_ref_col_ids(ObSEArray<uint64_t, 4> col_ids)
int set_ref_col_ids(ObSEArray<uint64_t, 4> &col_ids)
{
return ref_col_ids_.assign(col_ids);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册