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

Add decimal places to number columns in MSSQL #1731

Open
wants to merge 1 commit into
base: 2023.9.x
Choose a base branch
from

Conversation

martkaczmarek
Copy link

@martkaczmarek martkaczmarek commented Mar 12, 2024

temporary fix to store numbers with decimal places in MSSQL - use DECIMAL(18,6) instead of DECIMAL

The following changes are implemented

Use column type DECIMAL(18,6) instead of DECIMAL, which has no decimal places by default

Related to #1646

temporary fix to store numbers with decimal places in MSSQL - use DECIMAL(18,6) instead of DECIMAL

Signed-off-by: martkaczmarek <31852710+martkaczmarek@users.noreply.github.com>
@tjerman
Copy link
Member

tjerman commented Mar 26, 2024

Are you sure? Here it states that the default is 18

@tjerman
Copy link
Member

tjerman commented Mar 26, 2024

Ah... never mind; looked at the wrong thing.. my bad

@martkaczmarek
Copy link
Author

martkaczmarek commented Mar 26, 2024

Yup, when defined as DECIMAL, the MSSQL engine assumes DECIMAL(18,0), meaning 18 digits but 0 to the right of the decimal point.

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.

None yet

2 participants