[#54380548]change for update skip locked cursor to stream mode
This commit is contained in:
@ -75,7 +75,8 @@ public:
|
||||
has_hidden_rowid_(false),
|
||||
stmt_sql_(),
|
||||
is_bulk_(false),
|
||||
has_link_table_(false) {}
|
||||
has_link_table_(false),
|
||||
is_skip_locked_(false) {}
|
||||
virtual ~ExternalRetrieveInfo() {}
|
||||
|
||||
int build(ObStmt &stmt,
|
||||
@ -98,6 +99,7 @@ public:
|
||||
ObString stmt_sql_;
|
||||
bool is_bulk_;
|
||||
bool has_link_table_;
|
||||
bool is_skip_locked_;
|
||||
};
|
||||
|
||||
enum PsMode
|
||||
@ -173,6 +175,7 @@ public:
|
||||
inline bool has_hidden_rowid();
|
||||
inline bool is_bulk();
|
||||
inline bool is_link_table();
|
||||
inline bool is_skip_locked();
|
||||
/// whether the result is with rows (true for SELECT statement)
|
||||
bool is_with_rows() const;
|
||||
// tell mysql if need to do async end trans
|
||||
@ -644,6 +647,11 @@ inline bool ObResultSet::is_link_table()
|
||||
return external_retrieve_info_.has_link_table_;
|
||||
}
|
||||
|
||||
inline bool ObResultSet::is_skip_locked()
|
||||
{
|
||||
return external_retrieve_info_.is_skip_locked_;
|
||||
}
|
||||
|
||||
inline bool ObResultSet::is_with_rows() const
|
||||
{
|
||||
return (p_field_columns_->count() > 0 && !is_prepare_stmt());
|
||||
|
||||
Reference in New Issue
Block a user