[CP] fix bit type extract query range bug

This commit is contained in:
obdev
2022-06-30 16:19:13 +08:00
committed by linzhigang.lzg
parent 560dbb58c2
commit 2146f1d189
6 changed files with 18 additions and 7 deletions

View File

@ -1349,7 +1349,7 @@ BEGIN(in_c_comment);
// for 'select - -1 from dual'
// the first neg sign is not copied when it is parsed
// but when the second neg sign is parsed, the first neg sign must be put where is should be
if ('-' == yytext[0]) {
if ('-' == yytext[0] && IS_NEED_PARAMETERIZE) {
REPUT_NEG_SIGN(p);
p->minus_ctx_.pos_ = p->no_param_sql_len_;
p->minus_ctx_.raw_sql_offset_ = yylloc->first_column - 1;