Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -87,10 +87,6 @@ struct ObRawSql {
|
||||
{
|
||||
return search_end_ || cur_pos_ > raw_sql_len_ - 1;
|
||||
}
|
||||
inline bool is_search_end(const int64_t pos)
|
||||
{
|
||||
return search_end_ || pos > raw_sql_len_ - 1;
|
||||
}
|
||||
inline char peek()
|
||||
{
|
||||
if (cur_pos_ >= raw_sql_len_ - 1) {
|
||||
@ -381,7 +377,6 @@ protected:
|
||||
return is_valid_char(ch) && USER_VAR_CHAR[static_cast<uint8_t>(ch)];
|
||||
}
|
||||
void reset_parser_node(ParseNode *node);
|
||||
int64_t notascii_gb_char(const int64_t pos);
|
||||
//{U}
|
||||
int64_t is_latin1_char(const int64_t pos);
|
||||
// ({U_2}{U}|{U_3}{U}{U}|{U_4}{U}{U}{U}
|
||||
@ -441,11 +436,6 @@ protected:
|
||||
return is_valid_char(ch) &&
|
||||
static_cast<uint8_t>(ch) >= 0x40 && static_cast<uint8_t>(ch) <= 0xfe;
|
||||
}
|
||||
inline bool notascii(char ch)
|
||||
{
|
||||
return is_valid_char(ch) &&
|
||||
(static_cast<uint8_t>(ch) >= 0x80 && static_cast<uint8_t>(ch) <= 0xFF);
|
||||
}
|
||||
inline bool is_latin1(char ch)
|
||||
{
|
||||
return is_valid_char(ch) &&
|
||||
@ -710,6 +700,11 @@ private:
|
||||
*/
|
||||
int process_string(const bool in_q_quote);
|
||||
int process_identifier_begin_with_n();
|
||||
char *parse_strndup_with_trim_space_for_new_line(const char *str,
|
||||
size_t nbyte,
|
||||
char *buf,
|
||||
int *connection_collation,
|
||||
int64_t *new_len);
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObFastParserOracle);
|
||||
|
||||
Reference in New Issue
Block a user