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

Support nested substring calls #4867

Merged
merged 1 commit into from
May 23, 2019
Merged

Support nested substring calls #4867

merged 1 commit into from
May 23, 2019

Conversation

kuba--
Copy link
Collaborator

@kuba-- kuba-- commented May 17, 2019

Signed-off-by: kuba-- kuba@sourced.tech

So far, vitess cannot parse nested SUBSTR calls. This PR adds support for queries like:

select substr(substr('foo', 1, 2), 1, 2) from t

The issue does not exist for other string functions like REPLACE.

Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba--
Copy link
Collaborator Author

kuba-- commented May 21, 2019

Are we OK, with this change?

@sougou
Copy link
Contributor

sougou commented May 21, 2019

I'm backlogged due to kubecon. And I'll be at Percona live next week. I'll try to find time in the middle.

Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Good change 👍

@sougou sougou merged commit eb2d057 into vitessio:master May 23, 2019
@kuba-- kuba-- deleted the nested-substring branch May 31, 2019 22:08
systay pushed a commit that referenced this pull request Jul 22, 2024
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.

2 participants