Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Fix substring/2 #421

Merged
merged 1 commit into from
Oct 9, 2018
Merged

Fix substring/2 #421

merged 1 commit into from
Oct 9, 2018

Conversation

kuba--
Copy link
Contributor

@kuba-- kuba-- commented Oct 5, 2018

Signed-off-by: kuba-- kuba@sourced.tech
Closes: #418

@kuba-- kuba-- requested review from smola and a team October 5, 2018 15:43
@kuba-- kuba-- added the bug Something isn't working label Oct 5, 2018
@smola
Copy link
Collaborator

smola commented Oct 8, 2018

@kuba-- Could you add some more tests to parse_test.go? You could also check the FROM/FOR syntax if its supported by vitess, e.g. SELECT SUBSTRING('Sakila' FROM -4 FOR 2);

@ajnavarro
Copy link
Contributor

@kuba-- could you check @smola 's comment please?

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

kuba-- commented Oct 9, 2018

@smola, @ajnavarro - I've added a test with negative index, but neither substring with fixed literal (non column) nor FROM/FOR is not supported by vitess.
Shall we send another PR to vitess?

@smola
Copy link
Collaborator

smola commented Oct 9, 2018

@kuba-- Ok. I don't think it's very important, but wanted to verify if it worked correctly with the currently supported syntax. If it's a low hanging fruit, it makes sense to file a PR to vitess.

@kuba--
Copy link
Contributor Author

kuba-- commented Oct 9, 2018

@smola - ok, I'll take a look on this in a spare time (maybe OSD).

@ajnavarro ajnavarro merged commit 71c2d12 into src-d:master Oct 9, 2018
@kuba-- kuba-- deleted the fix-418/gitbase branch October 9, 2018 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants