go-sqlmock
go-sqlmock copied to clipboard
CSVColumnParser returns []byte instead of driver.Value
trafficstars
Operating system and Go Version
linux, 1.18.4
Issue
In 2018 this bug already appeared and was fixed in https://github.com/DATA-DOG/go-sqlmock/issues/140 v2 branch only, but last commit of v2 was on 14 Sep 2018 Can you support same behaviour in master?
Reproduction steps
https://go.dev/play/p/J5GC6fgNrYv
Expected Result
there is a remaining expectation which was not matched: ExpectedQuery => expecting Query, QueryContext or QueryRow which:
- matches sql: 'SELECT '
- is without arguments
- should return rows:
row 0 - [[49 50 51] <nil>]
Actual Result
there is a remaining expectation which was not matched: ExpectedQuery => expecting Query, QueryContext or QueryRow which:
- matches sql: 'SELECT '
- is without arguments
- should return rows:
row 0 - [[49 50 51] []]