lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
8.86k stars 908 forks source link

v1.10.8 got undefined: driver.Validator #1121

Closed angelinahung closed 1 year ago

angelinahung commented 1 year ago

dear team,

I got the error: go: github.com/lib/pq latest => v1.10.8 go: downloading github.com/lib/pq v1.10.8

github.com/lib/pq

....\go\pkg\mod\github.com\lib\pq@v1.10.8\conn.go:2089:7: undefined: driver.Validator

I use go 1.14 version

could you please check if there's an issue for the latest version (v1.10.8) when using go1.14? thanks

fho commented 1 year ago

Since https://github.com/lib/pq/commit/96e73eb9aa7ba849b24eae15477456d8bbb1c9b7 driver.Validator is used, it requires Golang >=1.15.

otan commented 1 year ago

should be fixed on v1.10.9 if your go version is old.