[#54380548]change for update skip locked cursor to stream mode

This commit is contained in:
seuwebber
2024-02-09 12:37:20 +00:00
committed by ob-robot
parent 53291d066b
commit d0fea03ca8
12 changed files with 91 additions and 27 deletions

View File

@ -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;

View File

@ -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_; }