[to #50178801] fix MySQL # comment in ODC

This commit is contained in:
0xacc
2023-06-08 07:12:21 +00:00
committed by ob-robot
parent 980eeb6c1d
commit 391d7ab6bd

View File

@ -77,6 +77,10 @@ bool ObParser::is_pl_stmt(const ObString &stmt, bool *is_create_func, bool *is_c
state = S_C_COMMENT;
p += 2;
}
} else if ('#' == *p && lib::is_mysql_mode()) {
save_state = state;
state = S_COMMENT;
p += 1;
}
if (state != S_COMMENT && state != S_C_COMMENT) {
p_normal_start = p;