|
119 | 119 | connection default;
|
120 | 120 | InnoDB 0 transactions not purged
|
121 | 121 | DROP TABLE t1,t2,t3,t4,big;
|
122 |
| -@@ -698,7 +712,7 @@ |
| 122 | +@@ -515,6 +529,8 @@ |
| 123 | + CREATE TABLE t1 (a INT, b VARCHAR(500), c TEXT, UNIQUE(a,b)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT; |
| 124 | + ALTER TABLE t1 ADD d TEXT; |
| 125 | + ALTER TABLE t1 ADD PRIMARY KEY (a,b); |
| 126 | ++Warnings: |
| 127 | ++Warning 139 Row size too large (> 1979). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline. |
| 128 | + ALTER TABLE t1 ADD va INT AS (a) VIRTUAL; |
| 129 | + DROP TABLE t1; |
| 130 | + CREATE TABLE t1 |
| 131 | +@@ -703,7 +719,7 @@ |
123 | 132 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
124 | 133 | WHERE name = 'test/t2';
|
125 | 134 | clust_index_size
|
|
128 | 137 | connection default;
|
129 | 138 | ROLLBACK;
|
130 | 139 | connection analyze;
|
131 |
| -@@ -708,7 +722,7 @@ |
| 140 | +@@ -713,7 +729,7 @@ |
132 | 141 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
133 | 142 | WHERE name = 'test/t2';
|
134 | 143 | clust_index_size
|
|
137 | 146 | connection default;
|
138 | 147 | BEGIN;
|
139 | 148 | UPDATE t2 SET d1 = repeat(id, 200);
|
140 |
| -@@ -719,7 +733,7 @@ |
| 149 | +@@ -724,7 +740,7 @@ |
141 | 150 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
142 | 151 | WHERE name = 'test/t2';
|
143 | 152 | clust_index_size
|
|
146 | 155 | connection default;
|
147 | 156 | ROLLBACK;
|
148 | 157 | connection analyze;
|
149 |
| -@@ -729,7 +743,7 @@ |
| 158 | +@@ -734,7 +750,7 @@ |
150 | 159 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
151 | 160 | WHERE name = 'test/t2';
|
152 | 161 | clust_index_size
|
|
155 | 164 | connection default;
|
156 | 165 | ALTER TABLE t2 DROP p;
|
157 | 166 | affected rows: 0
|
158 |
| -@@ -778,7 +792,9 @@ |
| 167 | +@@ -783,7 +799,9 @@ |
159 | 168 | info: Records: 0 Duplicates: 0 Warnings: 0
|
160 | 169 | ALTER TABLE t3 ADD COLUMN b BLOB NOT NULL;
|
161 | 170 | affected rows: 0
|
|
166 | 175 | INSERT INTO t3 SET id=4;
|
167 | 176 | ERROR HY000: Field 'c2' doesn't have a default value
|
168 | 177 | INSERT INTO t3 SET id=4, c2=0, b=0xf09f98b1;
|
169 |
| -@@ -791,7 +807,9 @@ |
| 178 | +@@ -796,7 +814,9 @@ |
170 | 179 | ALTER TABLE t3 CHANGE t phrase TEXT DEFAULT 0xc3a4c3a448,
|
171 | 180 | CHANGE b b BLOB NOT NULL DEFAULT 'binary line of business';
|
172 | 181 | affected rows: 4
|
|
177 | 186 | INSERT INTO t3 SET id=5, c2=9;
|
178 | 187 | Warnings:
|
179 | 188 | Note 1265 Data truncated for column 'c7' at row 1
|
180 |
| -@@ -805,7 +823,9 @@ |
| 189 | +@@ -810,7 +830,9 @@ |
181 | 190 | 5 9 POLYGON((1 1,2 2,3 3,1 1)) 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 03:00:42 1970-01-01 ääH binary line of business
|
182 | 191 | ALTER TABLE t3 DROP c3, DROP c7;
|
183 | 192 | affected rows: 0
|
|
188 | 197 | SELECT * FROM t3;
|
189 | 198 | id c2 c4 c5 c6 c8 phrase b
|
190 | 199 | 1 1 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 1970-01-01 The quick brown fox jumps over the lazy dog
|
191 |
| -@@ -833,6 +853,8 @@ |
| 200 | +@@ -838,6 +860,8 @@ |
192 | 201 | (id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000),
|
193 | 202 | p POINT NOT NULL DEFAULT ST_GeomFromText('POINT(0 0)'), SPATIAL INDEX(p))
|
194 | 203 | ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
|
197 | 206 | BEGIN;
|
198 | 207 | INSERT INTO big
|
199 | 208 | SET id=1, c1=REPEAT('a', 200), c2=REPEAT('b', 200), c3=REPEAT('c', 159);
|
200 |
| -@@ -850,13 +872,15 @@ |
| 209 | +@@ -855,13 +879,15 @@ |
201 | 210 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
202 | 211 | WHERE name = 'test/big';
|
203 | 212 | clust_index_size
|
|
215 | 224 | CHECKSUM TABLE big;
|
216 | 225 | Table Checksum
|
217 | 226 | test.big 1705165209
|
218 |
| -@@ -873,7 +897,7 @@ |
| 227 | +@@ -878,7 +904,7 @@ |
219 | 228 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
220 | 229 | WHERE name = 'test/big';
|
221 | 230 | clust_index_size
|
|
224 | 233 | connection default;
|
225 | 234 | ROLLBACK;
|
226 | 235 | CHECKSUM TABLE big;
|
227 |
| -@@ -886,7 +910,7 @@ |
| 236 | +@@ -891,7 +917,7 @@ |
228 | 237 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
229 | 238 | WHERE name = 'test/big';
|
230 | 239 | clust_index_size
|
|
233 | 242 | connection default;
|
234 | 243 | InnoDB 0 transactions not purged
|
235 | 244 | DROP TABLE t1,t2,t3,t4,big;
|
236 |
| -@@ -1155,7 +1179,7 @@ |
| 245 | +@@ -977,6 +1003,8 @@ |
| 246 | + CREATE TABLE t1 (a INT, b VARCHAR(500), c TEXT, UNIQUE(a,b)) ENGINE=InnoDB ROW_FORMAT=COMPACT; |
| 247 | + ALTER TABLE t1 ADD d TEXT; |
| 248 | + ALTER TABLE t1 ADD PRIMARY KEY (a,b); |
| 249 | ++Warnings: |
| 250 | ++Warning 139 Row size too large (> 1982). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline. |
| 251 | + ALTER TABLE t1 ADD va INT AS (a) VIRTUAL; |
| 252 | + DROP TABLE t1; |
| 253 | + CREATE TABLE t1 |
| 254 | +@@ -1165,7 +1193,7 @@ |
237 | 255 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
238 | 256 | WHERE name = 'test/t2';
|
239 | 257 | clust_index_size
|
|
242 | 260 | connection default;
|
243 | 261 | ROLLBACK;
|
244 | 262 | connection analyze;
|
245 |
| -@@ -1165,7 +1189,7 @@ |
| 263 | +@@ -1175,7 +1203,7 @@ |
246 | 264 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
247 | 265 | WHERE name = 'test/t2';
|
248 | 266 | clust_index_size
|
|
251 | 269 | connection default;
|
252 | 270 | BEGIN;
|
253 | 271 | UPDATE t2 SET d1 = repeat(id, 200);
|
254 |
| -@@ -1176,7 +1200,7 @@ |
| 272 | +@@ -1186,7 +1214,7 @@ |
255 | 273 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
256 | 274 | WHERE name = 'test/t2';
|
257 | 275 | clust_index_size
|
|
260 | 278 | connection default;
|
261 | 279 | ROLLBACK;
|
262 | 280 | connection analyze;
|
263 |
| -@@ -1186,7 +1210,7 @@ |
| 281 | +@@ -1196,7 +1224,7 @@ |
264 | 282 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
265 | 283 | WHERE name = 'test/t2';
|
266 | 284 | clust_index_size
|
|
269 | 287 | connection default;
|
270 | 288 | ALTER TABLE t2 DROP p;
|
271 | 289 | affected rows: 0
|
272 |
| -@@ -1307,7 +1331,7 @@ |
| 290 | +@@ -1317,7 +1345,7 @@ |
273 | 291 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
274 | 292 | WHERE name = 'test/big';
|
275 | 293 | clust_index_size
|
|
278 | 296 | connection default;
|
279 | 297 | ALTER TABLE big ADD COLUMN
|
280 | 298 | (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
|
281 |
| -@@ -1330,7 +1354,7 @@ |
| 299 | +@@ -1340,7 +1368,7 @@ |
282 | 300 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
283 | 301 | WHERE name = 'test/big';
|
284 | 302 | clust_index_size
|
|
287 | 305 | connection default;
|
288 | 306 | ROLLBACK;
|
289 | 307 | CHECKSUM TABLE big;
|
290 |
| -@@ -1343,7 +1367,7 @@ |
| 308 | +@@ -1353,7 +1381,7 @@ |
291 | 309 | SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
|
292 | 310 | WHERE name = 'test/big';
|
293 | 311 | clust_index_size
|
|
296 | 314 | connection default;
|
297 | 315 | InnoDB 0 transactions not purged
|
298 | 316 | DROP TABLE t1,t2,t3,t4,big;
|
299 |
| -@@ -1431,5 +1455,5 @@ |
| 317 | +@@ -1446,5 +1474,5 @@ |
300 | 318 | FROM information_schema.global_status
|
301 | 319 | WHERE variable_name = 'innodb_instant_alter_column';
|
302 | 320 | instants
|
303 |
| --54 |
304 |
| -+55 |
| 321 | +-57 |
| 322 | ++58 |
305 | 323 | SET GLOBAL innodb_purge_rseg_truncate_frequency= @saved_frequency;
|
0 commit comments