Explorar o código

init postgresql err (#3003)

iyyzh %!s(int64=2) %!d(string=hai) anos
pai
achega
3c9fe0b381
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      core/stores/postgres/postgresql.go

+ 2 - 1
core/stores/postgres/postgresql.go

@@ -2,7 +2,8 @@ package postgres
 
 import (
 	// imports the driver, don't remove this comment, golint requires.
-	_ "github.com/jackc/pgx/v5"
+	_ "github.com/jackc/pgx/v5/stdlib"
+
 	"github.com/zeromicro/go-zero/core/stores/sqlx"
 )