yanyxin commented on PR #29799:
URL: https://github.com/apache/doris/pull/29799#issuecomment-2247427109

   > > > The code 2.1.5 and master in this regard should be the same. Can you 
provide a specific example to illustrate the problem of wrong results?
   > > 
   > > 
   > > select substr('老人年轻并不等于动的金币第七十二',17); The result of executing 2.0.13 is 
null,2.1.5 The result is '老人年轻并不等于动的金币第七十二',Due to the presence of 
fixed_pos>index.size() in line 247 of the function_string. h file in 2.0.13, 
but not in branch 2.1.5, 2.0.13 is consistent with master
   > 
   > this behavior is changed by #28352, so I think 2.1 is same with master, 
and 2.0 still remained old behavior
   
   In line 243 of function_string. h in 2.1.5, if we do not check whether 
fixed_pos is greater than index.size(), will there be index access errors


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to