forked from radondb/radon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*.: fix bug on column field in where | order by clause radondb#713
[summary] 1. add checkField() function to check the column field illegal or not if the delete statment has field in where | order by clause. e.g.: mysql> delete from t where x.a=1; ERROR 1054 (42S22): Unknown column 'x.a' in 'where clause' mysql> delete from t where t.a=1 order by xx.a; ERROR 1054 (42S22): Unknown column 'xx.a' in 'order clause' 2. add rewriteField() function to rewrite the column field in where | order by clause. e.g.: delete from t where a=1; after rewrite maybe: delete from test.t_0001 where test.t_0001.a=1; [test case] src/planner/delete_plan_test.go [patch codecov] src/planner/common.go 95.8% src/planner/delete_plan.go 96.2%
- Loading branch information
Showing
10 changed files
with
225 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.