We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
描述
update 的表名有别名,会报字段不存在的错误。其实字段是存在的,去掉表的别名才行。
重现
[root@sql-audit archery]# docker exec -it goinception /bin/sh
/ # ./goInception -V Release Version: v1.2.3-14-g67e1ed1-dirty Git Commit Hash: 67e1ed10c7d748401f48dd5e51ed115f64d8acd8 Git Branch: master UTC Build Time: 2020-07-23 01:18:56 GoVersion: go version go1.12.17 linux/amd64 Race Enabled: false TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e Check Table Before Drop: false
UPDATE diagnosis a set create_time ='' 报错如下: 列 'diagnosis.create_time' 不存在. 请指定where条件.
UPDATE diagnosis set create_time ='' 去掉表的别名,就能通过了
环境
参数
The text was updated successfully, but these errors were encountered:
c3d39d8
Merge pull request #250 from hanchuanchuan/fix-update-alias-error
ff008f0
fix: 修复update指定表别名时审核错误的问题(fix #249)
No branches or pull requests
描述
update 的表名有别名,会报字段不存在的错误。其实字段是存在的,去掉表的别名才行。
重现
[root@sql-audit archery]# docker exec -it goinception /bin/sh
UPDATE
diagnosis a
set
create_time =''
报错如下:
列 'diagnosis.create_time' 不存在.
请指定where条件.
UPDATE
diagnosis
set
create_time =''
去掉表的别名,就能通过了
环境
参数
The text was updated successfully, but these errors were encountered: