Commit f235d90
Nisha Gopalakrishnan
BUG#16315351 - ALTER TABLE DROP COLUMN: NO WARNING IF DUPLICATE
INDEX FOR THE SAME COLUMN
Analysis
-------
When a column associated with a multi-column index is dropped,
a NOTE is not reported in case a duplicate index exist on the
table after the DROP COLUMN operation.
EX: CREATE TABLE t1( fld1 INT, fld2 INT, KEY(fld1, fld2),
KEY(fld2));
ALTER TABLE t1 DROP COLUMN fld1;
The duplicate index check was not invoked in the above mentioned
case.
Fix:
----
The flag 'check_for_duplicate_indexes' is set, to trigger the
duplicate index check when the column associated with an index
is dropped.1 parent 5ca17b9 commit f235d90
2 files changed
Lines changed: 36 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
| 1362 | + | |
| 1363 | + | |
1363 | 1364 | | |
1364 | 1365 | | |
1365 | 1366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3149 | 3149 | | |
3150 | 3150 | | |
3151 | 3151 | | |
3152 | | - | |
| 3152 | + | |
3153 | 3153 | | |
3154 | 3154 | | |
3155 | 3155 | | |
3156 | | - | |
| 3156 | + | |
3157 | 3157 | | |
3158 | 3158 | | |
3159 | 3159 | | |
3160 | 3160 | | |
3161 | 3161 | | |
3162 | 3162 | | |
3163 | | - | |
| 3163 | + | |
| 3164 | + | |
3164 | 3165 | | |
3165 | 3166 | | |
3166 | 3167 | | |
3167 | 3168 | | |
3168 | | - | |
| 3169 | + | |
3169 | 3170 | | |
3170 | 3171 | | |
3171 | 3172 | | |
| |||
3174 | 3175 | | |
3175 | 3176 | | |
3176 | 3177 | | |
3177 | | - | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
3178 | 3190 | | |
3179 | 3191 | | |
3180 | 3192 | | |
| |||
4107 | 4119 | | |
4108 | 4120 | | |
4109 | 4121 | | |
4110 | | - | |
| 4122 | + | |
4111 | 4123 | | |
4112 | 4124 | | |
4113 | 4125 | | |
| |||
6888 | 6900 | | |
6889 | 6901 | | |
6890 | 6902 | | |
| 6903 | + | |
6891 | 6904 | | |
6892 | 6905 | | |
6893 | 6906 | | |
| |||
6924 | 6937 | | |
6925 | 6938 | | |
6926 | 6939 | | |
| 6940 | + | |
| 6941 | + | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
6927 | 6945 | | |
| 6946 | + | |
6928 | 6947 | | |
6929 | 6948 | | |
6930 | 6949 | | |
| |||
6981 | 7000 | | |
6982 | 7001 | | |
6983 | 7002 | | |
6984 | | - | |
6985 | | - | |
6986 | | - | |
6987 | | - | |
6988 | | - | |
6989 | | - | |
6990 | 7003 | | |
6991 | 7004 | | |
6992 | 7005 | | |
| |||
7000 | 7013 | | |
7001 | 7014 | | |
7002 | 7015 | | |
| 7016 | + | |
| 7017 | + | |
| 7018 | + | |
| 7019 | + | |
| 7020 | + | |
| 7021 | + | |
| 7022 | + | |
| 7023 | + | |
| 7024 | + | |
7003 | 7025 | | |
7004 | 7026 | | |
7005 | 7027 | | |
| |||
0 commit comments