[bugfix]: avoid parser::split_multi_query splits the stmt by a semicolon in comment

This commit is contained in:
obdev
2022-04-19 10:33:01 +08:00
committed by wangzelin.wzl
parent 4fdbcc227c
commit 2934fef1c7
2 changed files with 81 additions and 19 deletions

View File

@ -53,6 +53,7 @@ public:
bool is_single_stmt(const common::ObString& stmt);
int split_multiple_stmt(const common::ObString& stmt, common::ObIArray<common::ObString>& queries,
ObMPParseStat& parse_fail, bool is_ret_first_stmt = false);
void get_single_sql(const common::ObString &stmt, int64_t offset, int64_t remain, int64_t &str_len);
//@param:
// no_throw_parser_error is used to mark not throw parser error. in the split multi stmt
// situation we will try find ';' delimiter to parser part of string in case of save memory,