Skip to content

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?

@hrach
Copy link
Member

hrach commented Feb 17, 2025

@qwerin proc mas numeric jako primary key? :-O Ale jinak ok, PR vypada dobre, akorat by to chtelo jeste nejaky update testu (kdyztak muzu udelat ja).

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