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

go-admin-core依赖需要使用1.5.1否则pg数据库操作有异常 #773

Open
Meepoljdx opened this issue Oct 27, 2023 · 0 comments
Open
Labels

Comments

@Meepoljdx
Copy link

Reproduction link

http://localhost:9527

Steps to reproduce

git clone https://github.com/go-admin-team/go-admin.git
go run main.go server -c config/settings-dev.yml 

通过go-admin-ui打开主页会出现查询错误的提示,后台日志:

2023-10-27 11:48:42.899 0800 trace 42b07deb-9c75-41f5-b01b-633b392562aa /mnt/d/Golang/go-admin/app/admin/service/sys_config.go:176 ERROR: syntax error at or near "." (SQLSTATE 42601) [1.052ms] [rows:0] SELECT * FROM "sys_config" WHERE `sys_config`.`is_frontend` = '1' AND "sys_config"."deleted_at" IS NULL

经过验证,是因为1.4.1的go-admin-core中没对pg的查询语句单独做适配,go-admin-core改成1.5.1后问题不再存在该问题

What is expected?

更新go.mod

What is actually happening?

Environment Info
go-admin v2.1.1
Go 1.19.2
System WSL
Browser Microsoft Edge 版本 118.0.2088.69 (正式版本) (64 位)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant