fix proxy parser core caused by access null ptr

This commit is contained in:
wangt1xiuyi
2023-06-01 12:47:46 +00:00
committed by ob-robot
parent 623c7d90aa
commit 42c9ecc3d0

View File

@ -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