patch 4.0
This commit is contained in:
@ -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_
|
||||
|
||||
Reference in New Issue
Block a user