[FEAT MERGE]implement user-defined rewrite rules

This commit is contained in:
obdev
2022-12-30 08:10:42 +00:00
committed by ob-robot
parent 21c0bac716
commit 9dcc0a529e
100 changed files with 5540 additions and 315 deletions

View File

@ -19,6 +19,7 @@
#include "lib/string/ob_string.h"
#include "lib/charset/ob_charset.h"
#include "sql/parser/ob_parser_utils.h"
#include "sql/udr/ob_udr_struct.h"
namespace oceanbase
{
@ -49,7 +50,8 @@ class ObParser
{
public:
explicit ObParser(common::ObIAllocator &allocator, ObSQLMode mode,
common::ObCollationType conn_collation = common::CS_TYPE_UTF8MB4_GENERAL_CI);
common::ObCollationType conn_collation = common::CS_TYPE_UTF8MB4_GENERAL_CI,
QuestionMarkDefNameCtx *ctx = nullptr);
virtual ~ObParser();
/// @param queries Note that all three members of ObString is valid, size() is the length
/// of the single statement, length() is the length of remainer statements
@ -193,6 +195,7 @@ private:
// we don't use it in parser now
ObSQLMode sql_mode_;
common::ObCollationType connection_collation_;
QuestionMarkDefNameCtx *def_name_ctx_;
};
} // end namespace sql