Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go-sql-driverでundefined: sql.NullTimeエラー #5

Open
tetsuyaohira opened this issue Jul 3, 2021 · 0 comments
Open

go-sql-driverでundefined: sql.NullTimeエラー #5

tetsuyaohira opened this issue Jul 3, 2021 · 0 comments

Comments

@tetsuyaohira
Copy link

tetsuyaohira commented Jul 3, 2021

技術書典 ISUCONのススメ page 26のgo-sql-driverのインストールでエラーになりました。

command

$ go get -u github.com/go-sql-driver/mysql

error message

# github.com/go-sql-driver/mysql
go/src/github.com/go-sql-driver/mysql/nulltime.go:36:15: undefined: sql.NullTime

手順の通りにgoをインストールされるバージョン1.10.4が原因で
バージョンを1.13以上にするとインストールできました。

関連

go-sql-driver/mysql#1214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant