Browse Source

init postgresql err (#3003)

iyyzh 2 years ago
parent
commit
3c9fe0b381
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/stores/postgres/postgresql.go

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

@@ -2,7 +2,8 @@ package postgres
 
 
 import (
 import (
 	// imports the driver, don't remove this comment, golint requires.
 	// 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"
 	"github.com/zeromicro/go-zero/core/stores/sqlx"
 )
 )