fix proxy parser core caused by access null ptr
This commit is contained in:
@ -151,8 +151,10 @@ int parse_sql_stmt(ParseResult *parse_result)
|
||||
void setup_token_pos_info(ParseNode *node, int off, int len)
|
||||
{
|
||||
#ifdef SQL_PARSER_COMPILATION
|
||||
if (node != NULL) {
|
||||
node->token_off_ = off;
|
||||
node->token_len_ = len;
|
||||
}
|
||||
#else
|
||||
// do nothing
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user