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

Implement the GetTables() interface of Migrator #137

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

zelozzz
Copy link

@zelozzz zelozzz commented Oct 25, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

User Case Description

2023/10/25 18:17:33 /home/xxxx/clickhouse/query.go:41 code: 47, message: Missing columns: 'TABLE_SCHEMA' while processing query: 'SELECT database AS table_schema, name AS table_name FROM system.tables WHERE TABLE_SCHEMA = 'default'', required columns: 'database' 'name' 'TABLE_SCHEMA', maybe you meant: ['database','name']
[2.451ms] [rows:-] SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA='default'
panic: get all tables fail: code: 47, message: Missing columns: 'TABLE_SCHEMA' while processing query: 'SELECT database AS table_schema, name AS table_name FROM system.tables WHERE TABLE_SCHEMA = 'default'', required columns: 'database' 'name' 'TABLE_SCHEMA', maybe you meant: ['database','name']

@jinzhu jinzhu merged commit 3f6c1cd into go-gorm:master Oct 26, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants