Invalid precision value #538
-
Hi Team, @freddy77, Exception: (0, HY104, '[mtodbc]: Binding parameter: [FreeTDS][SQL Server]Invalid precision value') ODBC Logs: [ODBC][16228][1710915952.043486][SQLGetDiagRecW.c][596] sql logs: as per logs SQL_NUMERIC using scale 3, which causes for the issue, but am not sure how we can avoid from this exception, Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are using a |
Beta Was this translation helpful? Give feedback.
You are using a
NUMERIC(255,3)
, it's not the scale it's the precision. See alsoColumnSize
inSQLBindParameter
documentation https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlbindparameter-function?view=sql-server-ver16.