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

numeric type is int on MSSQL PDO #275

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

qwerin
Copy link
Contributor

@qwerin qwerin commented Jan 5, 2025

No description provided.

@hrach
Copy link
Member

hrach commented Jan 5, 2025

It does not seem to be correct, numeric~decimal and it may have a precession. We intentionally keep such values as strings. If we knew the precision is zero, then we could convert, but it seems that this general conversion is lossy.

https://learn.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver16

@qwerin
Copy link
Contributor Author

qwerin commented Jan 6, 2025

Ok i try write

@qwerin
Copy link
Contributor Author

qwerin commented Jan 8, 2025

Pro info cele tohle resim protoze mi tahle zmena nextras/orm@d033134
vraci chybu The primary value types (string, integer) are not equal, ...
Neni to uplne dobre reseni nejak nachapu proc kdyz je entita s parametrem int tak tam dbal proste nacpe string.
Mozna by kontrola typu DB vs Entity mohla nekde byt na settrech?

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.

2 participants