-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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 = .
Line 202 in 1a2d89f
| return []byte(num.String()), err |
On further debugging into num.String() function, we found that the following IsInt() check is getting failed:
Line 116 in 1a2d89f
| if n.r.IsInt() { |
Metadata
Metadata
Assignees
Labels
No labels