Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mysql/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
case string:
switch fieldType {
case TypeDatetime, TypeTimestamp:
if v == "0000-00-00 00:00:00" {
if strings.HasPrefix(v, "0000-00-00 00:00:00"){

Check failure on line 554 in mysql/encoding.go

View workflow job for this annotation

GitHub Actions / runner / golangci-lint

[golangci] reported by reviewdog 🐶 undefined: strings (typecheck) Raw Output: mysql/encoding.go:554:7: undefined: strings (typecheck) if strings.HasPrefix(v, "0000-00-00 00:00:00"){ ^
t = append(t, 0)
} else {
ts, err := time.Parse("2006-01-02 15:04:05", v)
Expand Down
Loading