We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code used to insert row(values are having numeric data type in database): db.Exec("INSERT INTO table_name (col_a, col_b) VALUES (?, ?)", 1.23, 0)
db.Exec("INSERT INTO table_name (col_a, col_b) VALUES (?, ?)", 1.23, 0)
Error Received: tds: error while scanning array of bytes to numeric: tds: could not parse string . to number
Debugged further and found that num.String() in line below is returning value = .
.
tds/num.go
Line 202 in 1a2d89f
On further debugging into num.String() function, we found that the following IsInt() check is getting failed:
Line 116 in 1a2d89f
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'll check it tomorrow. It should be fixed shortly.
Sorry, something went wrong.
No branches or pull requests
Code used to insert row(values are having numeric data type in database):
db.Exec("INSERT INTO table_name (col_a, col_b) VALUES (?, ?)", 1.23, 0)
Error Received: tds: error while scanning array of bytes to numeric: tds: could not parse string . to number
Debugged further and found that num.String() in line below is returning value =
.
tds/num.go
Line 202 in 1a2d89f
On further debugging into num.String() function, we found that the following IsInt() check is getting failed:
tds/num.go
Line 116 in 1a2d89f
The text was updated successfully, but these errors were encountered: