-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
CLIabout gf cliabout gf clibugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.
Description
What version of Go
and system type/arch are you using?
go version go1.22.1 darwin/arm64
What version of GoFrame
are you using?
v2.6.4
Can this bug be re-produced with the latest release?
Yes
What did you do?
local postgreSQL database configuration:
host: 127.0.0.1
port: 5432
user: postgres
password: abcd1234
database: my_app
file hack/config.yaml
:
gfcli:
gen:
dao:
- link: "pgsql:postgres:postgres@tcp(127.0.0.1:5432)/postgres"
I executed the cmd:
gf gen dao -l "pgsql:postgres:abcd1234@tcp(127.0.0.1:5432)/my_app"
What did you expect to see?
Generate dao successfully.
What did you see instead?
fetching tables failed: SELECT c.relname FROM pg_class c INNER JOIN pg_namespace n ON c.relnamespace = n.oid WHERE n.nspname = 'public' AND c.relkind IN ('r', 'p') ORDER BY c.relname: pq: password authentication failed for user "postgres"
1. SELECT c.relname FROM pg_class c INNER JOIN pg_namespace n ON c.relnamespace = n.oid WHERE n.nspname = 'public' AND c.relkind IN ('r', 'p') ORDER BY c.relname
1). reflect.Value.call
/opt/homebrew/Cellar/go/1.22.1/libexec/src/reflect/value.go:596
2). reflect.Value.Call
/opt/homebrew/Cellar/go/1.22.1/libexec/src/reflect/value.go:380
3). runtime.main
/opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/proc.go:271
4). runtime.goexit
/opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/asm_arm64.s:1222
2. pq: password authentication failed for user "postgres"
Metadata
Metadata
Assignees
Labels
CLIabout gf cliabout gf clibugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.