You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce: run ./bin/goose mysql $DSN status where DSN is a DSN with no parameters.
This produces the following output:
Applied At Migration
=======================================
2018/03/29 22:07:13 sql: Scan error on column index 0: unsupported Scan, storing driver.Value type []uint8 into type *time.Time
I modified by DSN to have the parseTime=true parameter, and the problem subsides. Should goose really be so opinionated about how the DSN is formatted in order to work?
We could consider appending / inserting the &parseTime=true option into the dsn param sequence, if it is not present. Alternatively, we changing the struct holder to take a string and then parse it as needed (but maybe we need to stripparseTime in that case?).
The text was updated successfully, but these errors were encountered:
To reproduce: run
./bin/goose mysql $DSN status
where DSN is a DSN with no parameters.I modified by DSN to have the
parseTime=true
parameter, and the problem subsides. Should goose really be so opinionated about how theDSN
is formatted in order to work?We could consider appending / inserting the
&parseTime=true
option into the dsn param sequence, if it is not present. Alternatively, we changing the struct holder to take astring
and then parse it as needed (but maybe we need to stripparseTime
in that case?).The text was updated successfully, but these errors were encountered: