|
1 |
| -/* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights |
| 2 | + reserved. |
2 | 3 |
|
3 | 4 | This program is free software; you can redistribute it and/or modify
|
4 | 5 | it under the terms of the GNU General Public License as published by
|
@@ -141,65 +142,62 @@ class Alter_info
|
141 | 142 | // Set for DISABLE KEYS | ENABLE KEYS
|
142 | 143 | static const uint ALTER_KEYS_ONOFF = 1L << 9;
|
143 | 144 |
|
144 |
| - // Set for CONVERT TO CHARACTER SET |
145 |
| - static const uint ALTER_CONVERT = 1L << 10; |
146 |
| - |
147 | 145 | // Set for FORCE
|
148 | 146 | // Set for ENGINE(same engine)
|
149 | 147 | // Set by mysql_recreate_table()
|
150 |
| - static const uint ALTER_RECREATE = 1L << 11; |
| 148 | + static const uint ALTER_RECREATE = 1L << 10; |
151 | 149 |
|
152 | 150 | // Set for ADD PARTITION
|
153 |
| - static const uint ALTER_ADD_PARTITION = 1L << 12; |
| 151 | + static const uint ALTER_ADD_PARTITION = 1L << 11; |
154 | 152 |
|
155 | 153 | // Set for DROP PARTITION
|
156 |
| - static const uint ALTER_DROP_PARTITION = 1L << 13; |
| 154 | + static const uint ALTER_DROP_PARTITION = 1L << 12; |
157 | 155 |
|
158 | 156 | // Set for COALESCE PARTITION
|
159 |
| - static const uint ALTER_COALESCE_PARTITION = 1L << 14; |
| 157 | + static const uint ALTER_COALESCE_PARTITION = 1L << 13; |
160 | 158 |
|
161 | 159 | // Set for REORGANIZE PARTITION ... INTO
|
162 |
| - static const uint ALTER_REORGANIZE_PARTITION = 1L << 15; |
| 160 | + static const uint ALTER_REORGANIZE_PARTITION = 1L << 14; |
163 | 161 |
|
164 | 162 | // Set for partition_options
|
165 |
| - static const uint ALTER_PARTITION = 1L << 16; |
| 163 | + static const uint ALTER_PARTITION = 1L << 15; |
166 | 164 |
|
167 | 165 | // Set for LOAD INDEX INTO CACHE ... PARTITION
|
168 | 166 | // Set for CACHE INDEX ... PARTITION
|
169 |
| - static const uint ALTER_ADMIN_PARTITION = 1L << 17; |
| 167 | + static const uint ALTER_ADMIN_PARTITION = 1L << 16; |
170 | 168 |
|
171 | 169 | // Set for REORGANIZE PARTITION
|
172 |
| - static const uint ALTER_TABLE_REORG = 1L << 18; |
| 170 | + static const uint ALTER_TABLE_REORG = 1L << 17; |
173 | 171 |
|
174 | 172 | // Set for REBUILD PARTITION
|
175 |
| - static const uint ALTER_REBUILD_PARTITION = 1L << 19; |
| 173 | + static const uint ALTER_REBUILD_PARTITION = 1L << 18; |
176 | 174 |
|
177 | 175 | // Set for partitioning operations specifying ALL keyword
|
178 |
| - static const uint ALTER_ALL_PARTITION = 1L << 20; |
| 176 | + static const uint ALTER_ALL_PARTITION = 1L << 19; |
179 | 177 |
|
180 | 178 | // Set for REMOVE PARTITIONING
|
181 |
| - static const uint ALTER_REMOVE_PARTITIONING = 1L << 21; |
| 179 | + static const uint ALTER_REMOVE_PARTITIONING = 1L << 20; |
182 | 180 |
|
183 | 181 | // Set for ADD FOREIGN KEY
|
184 |
| - static const uint ADD_FOREIGN_KEY = 1L << 22; |
| 182 | + static const uint ADD_FOREIGN_KEY = 1L << 21; |
185 | 183 |
|
186 | 184 | // Set for DROP FOREIGN KEY
|
187 |
| - static const uint DROP_FOREIGN_KEY = 1L << 23; |
| 185 | + static const uint DROP_FOREIGN_KEY = 1L << 22; |
188 | 186 |
|
189 | 187 | // Set for EXCHANGE PARITION
|
190 |
| - static const uint ALTER_EXCHANGE_PARTITION = 1L << 24; |
| 188 | + static const uint ALTER_EXCHANGE_PARTITION = 1L << 23; |
191 | 189 |
|
192 | 190 | // Set by Sql_cmd_alter_table_truncate_partition::execute()
|
193 |
| - static const uint ALTER_TRUNCATE_PARTITION = 1L << 25; |
| 191 | + static const uint ALTER_TRUNCATE_PARTITION = 1L << 24; |
194 | 192 |
|
195 | 193 | // Set for ADD [COLUMN] FIRST | AFTER
|
196 |
| - static const uint ALTER_COLUMN_ORDER = 1L << 26; |
| 194 | + static const uint ALTER_COLUMN_ORDER = 1L << 25; |
197 | 195 |
|
198 | 196 | // Set for RENAME INDEX
|
199 |
| - static const uint ALTER_RENAME_INDEX = 1L << 27; |
| 197 | + static const uint ALTER_RENAME_INDEX = 1L << 26; |
200 | 198 |
|
201 | 199 | // Set for UPGRADE PARTITIONING
|
202 |
| - static const uint ALTER_UPGRADE_PARTITIONING = 1L << 30; |
| 200 | + static const uint ALTER_UPGRADE_PARTITIONING = 1L << 27; |
203 | 201 |
|
204 | 202 | enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
|
205 | 203 |
|
|
0 commit comments