patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -16,47 +16,44 @@
#include "sql/resolver/dml/ob_dml_stmt.h"
#include "share/ob_define.h"
namespace oceanbase {
namespace sql {
class ObExplainStmt : public ObDMLStmt {
namespace oceanbase
{
namespace sql
{
struct ObExplainDisplayOpt
{
ObExplainDisplayOpt() : with_tree_line_(false), with_color_(false) {}
bool with_tree_line_;
bool with_color_;
};
class ObExplainStmt : public ObDMLStmt
{
public:
ObExplainStmt();
virtual ~ObExplainStmt();
void set_explain_format(ExplainType format)
{
format_ = format;
}
// void set_verbose(bool verbose);
// bool is_verbose() const;
ExplainType get_explain_type() const
{
return format_;
}
ObDMLStmt* get_explain_query_stmt() const
{
return explain_query_stmt_;
}
void set_explain_query_stmt(ObDMLStmt* stmt)
{
explain_query_stmt_ = stmt;
}
void set_explain_format(ExplainType format) { format_ = format; }
ExplainType get_explain_type() const { return format_; }
void set_display_opt(const ObExplainDisplayOpt &opt) { display_opt_ = opt; }
const ObExplainDisplayOpt &get_display_opt() const { return display_opt_; }
ObDMLStmt* get_explain_query_stmt() const { return explain_query_stmt_; }
void set_explain_query_stmt(ObDMLStmt *stmt) { explain_query_stmt_ = stmt; }
bool is_select_explain() const;
bool is_dml_explain() const;
virtual bool is_affect_found_rows() const
{
return is_select_explain();
}
virtual bool is_affect_found_rows() const { return is_select_explain(); }
DECLARE_VIRTUAL_TO_STRING;
private:
// bool verbose_;
//bool verbose_;
ExplainType format_;
ObDMLStmt* explain_query_stmt_;
ObExplainDisplayOpt display_opt_;
ObDMLStmt *explain_query_stmt_;
DISALLOW_COPY_AND_ASSIGN(ObExplainStmt);
};
} // namespace sql
} // namespace oceanbase
}
}
#endif // OCEANBASE_SQL_RESOLVER_DML_EXPLAIN_STMT_
#endif //OCEANBASE_SQL_RESOLVER_DML_EXPLAIN_STMT_