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

builtin: add lpad built-in function #2838

Merged
merged 4 commits into from
Mar 16, 2017
Merged

builtin: add lpad built-in function #2838

merged 4 commits into from
Mar 16, 2017

Conversation

hsqlu
Copy link
Contributor

@hsqlu hsqlu commented Mar 15, 2017

@coocood
Copy link
Member

coocood commented Mar 15, 2017

LGTM
Good Job!

}

if l < 0 || (len(str) < l && padStr == "") {
d.SetNull()
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this line,because the default value of d is null.
Rest LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got that. I've removed that line. PTAL again, thanks!

@zimulala
Copy link
Contributor

LGTM

@zimulala zimulala merged commit 6e27871 into pingcap:master Mar 16, 2017
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants