Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pq: column "version" does not exist #13

Open
gcdd1993 opened this issue Jul 30, 2022 · 0 comments
Open

pq: column "version" does not exist #13

gcdd1993 opened this issue Jul 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@gcdd1993
Copy link

使用PostgreSQL导出Online文档时报错,pq: column "version" does not exist

详细信息如下

$ ./db-doc-windows-amd64.exe
Welcome to the database document generation tool, the current version is v1.1.1
? Database type:
1:MySQL or MariaDB
2:SQL Server
3:PostgreSQL
3
? Database host (127.0.0.1) :
x.x.x.x # 脱敏
? Database port (5432) :

? Database username (postgres) :
xxxx # 脱敏
? Database password (123456) :
xxxx # 脱敏
? Database name:
xxx
? Document type:
1:Online
2:Offline
1
pq: column "version" does not exist
panic: runtime error: invalid memory address or nil pointer dereference
        panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x18730e]

goroutine 1 [running]:
database/sql.(*Rows).close(0x0, {0x0, 0x0})
        database/sql/sql.go:3308 +0x8e
database/sql.(*Rows).Close(0x0?)
        database/sql/sql.go:3304 +0x1d
panic({0x595360, 0xad5ff0})
        runtime/panic.go:838 +0x207
database/sql.(*Rows).Next(0x0)
        database/sql/sql.go:2985 +0x27
db-doc/database.getDbInfo(0x17aa7c?)
        db-doc/database/database.go:85 +0x1be
db-doc/database.Generate(0xae88c0)
        db-doc/database/database.go:26 +0x126
main.main()
        db-doc/main.go:43 +0x651
@xbmlz xbmlz added the bug Something isn't working label Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants