[#54380548]change for update skip locked cursor to stream mode
This commit is contained in:
@ -791,6 +791,18 @@ bool ObSelectStmt::has_for_update() const
|
||||
return bret;
|
||||
}
|
||||
|
||||
bool ObSelectStmt::is_skip_locked() const
|
||||
{
|
||||
bool bret = false;
|
||||
for (int64_t i = 0; !bret && i < table_items_.count(); ++i) {
|
||||
const TableItem *table_item = table_items_.at(i);
|
||||
if (table_item != NULL && table_item->skip_locked_) {
|
||||
bret = true;
|
||||
}
|
||||
}
|
||||
return bret;
|
||||
}
|
||||
|
||||
int ObSelectStmt::clear_sharable_expr_reference()
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
|
||||
@ -511,6 +511,7 @@ public:
|
||||
}
|
||||
int add_having_expr(ObRawExpr *expr) { return having_exprs_.push_back(expr); }
|
||||
bool has_for_update() const;
|
||||
bool is_skip_locked() const;
|
||||
common::ObIArray<ObColumnRefRawExpr*> &get_for_update_columns() { return for_update_columns_; }
|
||||
const common::ObIArray<ObColumnRefRawExpr *> &get_for_update_columns() const { return for_update_columns_; }
|
||||
bool contain_ab_param() const { return contain_ab_param_; }
|
||||
|
||||
Reference in New Issue
Block a user