Skip to content

Commit

Permalink
Merge pull request #20 from gatewayd-io/fix-errors
Browse files Browse the repository at this point in the history
Fix errors
  • Loading branch information
mostafa authored Jan 2, 2024
2 parents 213d6d9 + 038b601 commit 5b9ad5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions databases/postgres/query_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package postgres
import (
"fmt"

pgAnalyze "github.com/pganalyze/pg_query_go/v4"
pgAnalyze "github.com/pganalyze/pg_query_go/v5"
pgQuery "github.com/wasilibs/go-pgquery"
)

Expand All @@ -13,8 +13,8 @@ const MinPgSQLMessageLength = 5
func GetQueryFromRequest(req interface{}) (string, error) {
var requestDecoded []byte

if req, ok := req.([]byte); ok {
requestDecoded = req
if request, ok := req.([]byte); ok {
requestDecoded = request
} else {
return "", fmt.Errorf("unknown request type: %T", req)
}
Expand Down

0 comments on commit 5b9ad5e

Please sign in to comment.