Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evaluator: partially fix issue #1098 #1100

Merged
merged 1 commit into from
Apr 16, 2016
Merged

Conversation

zyguan
Copy link
Contributor

@zyguan zyguan commented Apr 15, 2016

Fix the incorrect behavior of substring function, multi-byte charset still hasn't been supported.

}
if end > int64(len(str)) {
end = int64(len(str))
if haslen {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use "length != -1" as haslen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because length may equal to -1.

@shenli
Copy link
Member

shenli commented Apr 15, 2016

@coocood @zxylvlp PTAL

* evaluator: fix the incorrect behavior of `substring` function,
             multi-byte charset still hasn't been supported.
@shenli
Copy link
Member

shenli commented Apr 15, 2016

LGTM
Thanks @zyguan

@c4pt0r
Copy link
Member

c4pt0r commented Apr 16, 2016

LGTM

@shenli shenli merged commit cd3d424 into pingcap:master Apr 16, 2016
3pointer pushed a commit to 3pointer/tidb that referenced this pull request Jun 28, 2021
xhebox pushed a commit to xhebox/tidb that referenced this pull request Sep 28, 2021
xhebox pushed a commit to xhebox/tidb that referenced this pull request Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants