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

gorm连接clickhouse指定的database无效 #73

Open
virgiljg opened this issue Dec 7, 2022 · 0 comments
Open

gorm连接clickhouse指定的database无效 #73

virgiljg opened this issue Dec 7, 2022 · 0 comments
Assignees

Comments

@virgiljg
Copy link

virgiljg commented Dec 7, 2022

GORM 指定clickhouse库名无效

go-gorm/playground#1

gorm连接clickhouse使用的不是dsn中database,而是default。

使用gorm的自动建表即使使用sql use database切换库名,在执行到ColumnTypes函数时,用CurrentDatabase打印出来的还是default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants