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

MCOL-2057 Fix truncate(x,d) when d < 0 for unsigned int data types #670

Closed
wants to merge 1 commit into from

Conversation

tntnatbry
Copy link
Contributor

For unsigned data types in the int family (tinyint, smallint, int, bigint),
truncate(x, d) had a no effect when d < 0. This PR fixes this issue.

I am submitting this patch under the BSD-new license.

For unsigned data types in the int family (tinyint, smallint, int, bigint),
truncate(x, d) now properly applies zeros when d < 0.
@drrtuy
Copy link
Collaborator

drrtuy commented Jan 2, 2019

Many thanks for the contribution. We appreciate it and proceed with review shortly.

@drrtuy
Copy link
Collaborator

drrtuy commented Jan 8, 2019

The change is OK.
Could you make this change against develop-1.2 branch and recreate PR?

@tntnatbry
Copy link
Contributor Author

Done. I created a new PR (#671). Closing this.

@tntnatbry tntnatbry closed this Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants