Skip to content

Conversation

@MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Oct 25, 2025

PR adds a test for the fix done in #2377, validating the case where when scale is set to 0, then we do still get decimal(15,0) in the column definition.

For reference, the default value for precision if the arguments are omitted is 10.

Signed-off-by: Matthew Peveler <[email protected]>
@dereuromark
Copy link
Member

What PR/issue was that related to?

@MasterOdin
Copy link
Member Author

MasterOdin commented Oct 25, 2025

@dereuromark #2377, which you merged 4 days ago without any tests.

I suspect there's also a similar bug in the implementation for at least sqlserver as well, though that's a bit more tricky as whereas mysql requires both of precision and scale or neither, sqlserver allows omitting scale per their docs.

@MasterOdin MasterOdin changed the title Add tests for decimal scale fix Add tests for mysql zero scale fix Oct 25, 2025
@MasterOdin MasterOdin changed the title Add tests for mysql zero scale fix Add test for mysql zero scale fix Oct 25, 2025
@MasterOdin MasterOdin marked this pull request as ready for review October 25, 2025 19:20
@MasterOdin MasterOdin changed the title Add test for mysql zero scale fix Add test for mysql zero scale column def fix Oct 25, 2025
@dereuromark
Copy link
Member

True, but the fix was quite obvious from the PR.

@MasterOdin
Copy link
Member Author

Regardless of simplicity of a given fix, I would still like to see tests to prevent regressions in the future.

@MasterOdin MasterOdin merged commit f78c0cf into 0.x Oct 25, 2025
12 checks passed
@MasterOdin MasterOdin deleted the chore-add-tests branch October 25, 2025 20:50
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