使用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
使用PostgreSQL导出Online文档时报错,
pq: column "version" does not exist详细信息如下