go-sqlmock icon indicating copy to clipboard operation
go-sqlmock copied to clipboard

CSVColumnParser returns []byte instead of driver.Value

Open vasyvasilie opened this issue 3 years ago • 0 comments
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] []]

vasyvasilie avatar Aug 09 '22 17:08 vasyvasilie