Open bignyap opened 3 weeks ago
The error seems to be coming from https://github.com/hexon/mysqltsv/blob/2b86f827d04d8756e4837073ecf512595e49bc90/mysqltsv.go#L213C2-L213C9 . I do not see float is being handled anywhere.
Adding the following line at (https://github.com/hexon/mysqltsv/blob/2b86f827d04d8756e4837073ecf512595e49bc90/mysqltsv.go#L213C2-L213C9)](https://github.com/hexon/mysqltsv/blob/2b86f827d04d8756e4837073ecf512595e49bc90/mysqltsv.go#L213C2-L213C9) fixes the issue for float64. We have to handle all the other variants of float.
case float64:
return []byte(strconv.FormatFloat(v, 'f', -1, 64)), nil
/assign
Fixed with mysqltsv v0.2.2.
/close
Version
1.25.0
What happened?
Copy or Load data should have gone without any error.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
Windows
What database engines are you using?
MySQL
What type of code are you generating?
Go