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

对于过滤的列能在获取table结构的时候就删除么 #27

Open
running-db opened this issue Nov 19, 2024 · 3 comments
Open

对于过滤的列能在获取table结构的时候就删除么 #27

running-db opened this issue Nov 19, 2024 · 3 comments

Comments

@running-db
Copy link

有一个表,存在desc,explain等关键字列,配置了列过滤,在同步时报错。能否在GetTable(db string, table string) (*schema.Table, error) 这个函数执行阶段就去掉这些列呢

@liuxinwang
Copy link
Owner

具体为什么报错

@running-db
Copy link
Author

错误信息事与此程序无关的,是sql自己的报错。这些是可执行命令,在mysql执行select或者在sr中写入数据的报错。比如执行一个sql:select col1,col2,desc,explain from tab,此时会报desc那或者explain那的错误。

@liuxinwang
Copy link
Owner

关键字加上explain 就可以执行了,是否能解决你的问题呢?

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