File: deprecated_features.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (543 lines) | stat: -rw-r--r-- 26,625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
set global log_bin_trust_routine_creators=1;
ERROR HY000: Unknown system variable 'log_bin_trust_routine_creators'
set table_type='MyISAM';
ERROR HY000: Unknown system variable 'table_type'
select @@table_type='MyISAM';
ERROR HY000: Unknown system variable 'table_type'
backup table t1 to 'data.txt';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'backup table t1 to 'data.txt'' at line 1
restore table t1 from 'data.txt';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restore table t1 from 'data.txt'' at line 1
show plugin;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plugin' at line 1
load table t1 from master;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table t1 from master' at line 1
load data from master;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'master' at line 1
SHOW INNODB STATUS;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INNODB STATUS' at line 1
create table t1 (t6 timestamp) type=myisam;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=myisam' at line 1
show table types;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'types' at line 1
show mutex status;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mutex status' at line 1
# WL#13070 Deprecate && as synonym for AND and || as synonym for OR in SQL statements
set sql_mode=pipes_as_concat;
select 2 || 3;
2 || 3
23
select 2 or 3;
2 or 3
1
select concat(2,3);
concat(2,3)
23
set sql_mode='';
select 2 || 3;
2 || 3
1
Warnings:
Warning	1287	'|| as a synonym for OR' is deprecated and will be removed in a future release. Please use OR instead
select 2 or 3;
2 or 3
1
set sql_mode=default;
# WL#13068 Deprecate BINARY keyword for specifying _bin collations
# (I) Those statements SHOULD WARN
create table t1 (v varchar(10) binary);
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) character set latin1 binary);
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) binary character set latin1);
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) binary ascii);
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
Warning	1287	'ASCII' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) ascii binary);
Warnings:
Warning	1287	'ASCII' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) binary unicode);
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
Warning	1287	'UNICODE' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10) unicode binary);
Warnings:
Warning	1287	'UNICODE' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10));
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
alter table t1 modify v varchar(10) binary character set latin1;
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
alter table t1 modify v varchar(10) unicode binary;
Warnings:
Warning	1287	'UNICODE' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET ucs2 COLLATE ucs2_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
alter table t1 modify v varchar(10) binary ascii;
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
Warning	1287	'ASCII' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
select collation(cast('a' as char(2))), collation(cast('a' as char(2) binary));
collation(cast('a' as char(2)))	collation(cast('a' as char(2) binary))
utf8mb4_0900_ai_ci	utf8mb4_bin
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
select collation(convert('a', char(2))), collation(convert('a', char(2) binary));
collation(convert('a', char(2)))	collation(convert('a', char(2) binary))
utf8mb4_0900_ai_ci	utf8mb4_bin
Warnings:
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
select collation(convert('a',char(2) ascii)), collation(convert('a',char(2) ascii binary));
collation(convert('a',char(2) ascii))	collation(convert('a',char(2) ascii binary))
latin1_swedish_ci	latin1_bin
Warnings:
Warning	1287	'ASCII' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
Warning	1287	'ASCII' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead
Warning	1287	'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead
# (II) Those statements SHOULDN'T WARN, as they do make
# "binary" charset, not just a "_bin" collation of another charset.
create table t1 (v binary(10));
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` binary(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
drop table t1;
create table t1 (v varchar(10)) character set binary;
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varbinary(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary
drop table t1;
create table t1 (v varchar(10));
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
alter table t1 character set binary;
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary
drop table t1;
create database mysqltest2 default character set = binary;
show create database mysqltest2 ;
Database	Create Database
mysqltest2	CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET binary */ /*!80016 DEFAULT ENCRYPTION='N' */
drop database mysqltest2;
create database mysqltest2 default character set = latin1;
show create database mysqltest2 ;
Database	Create Database
mysqltest2	CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin1 */ /*!80016 DEFAULT ENCRYPTION='N' */
alter database mysqltest2 default character set = binary;
show create database mysqltest2 ;
Database	Create Database
mysqltest2	CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET binary */ /*!80016 DEFAULT ENCRYPTION='N' */
drop database mysqltest2;
select @@character_set_client;
@@character_set_client
utf8mb4
set character set binary;
select @@character_set_client;
@@character_set_client
binary
set character set default;
select @@character_set_client;
@@character_set_client
utf8mb4
set names binary;
select @@character_set_client;
@@character_set_client
binary
set names default;
select convert("123" using binary);
convert("123" using binary)
123
select char(123 using binary);
char(123 using binary)
{
select collation(char(123)), collation(char(123 using binary));
collation(char(123))	collation(char(123 using binary))
binary	binary
create table t1 (v varchar(10) byte);
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `v` varbinary(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
insert into t1 values("xyz");
select * from t1 into outfile 'tmp1.txt' character set binary;
load data infile 'tmp1.txt' into table t1 character set binary;
select * from t1;
v
xyz
xyz
drop table t1;

# WL#13588 Deprecate support for prefix keys in partition functions.

CREATE SCHEMA testdb;

# Should show deprecation warnings on CREATE TABLE for affected tables.

CREATE TABLE testdb.t1 (
a VARCHAR (10000),
b VARCHAR (25),
c VARCHAR (10),
PRIMARY KEY (a(10),b,c(2))
) PARTITION BY KEY() PARTITIONS 2;
Warnings:
Warning	1681	Column 'testdb.t1.a' having prefix key part 'a(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.
Warning	1681	Column 'testdb.t1.c' having prefix key part 'c(2)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t2 (
a VARCHAR (200),
b VARCHAR (10),
PRIMARY KEY (a(2),b)
) PARTITION BY KEY() PARTITIONS 2;
Warnings:
Warning	1681	Column 'testdb.t2.a' having prefix key part 'a(2)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t3 (
a VARCHAR (200),
b VARCHAR (10),
PRIMARY KEY (a(2),b)
) PARTITION BY KEY() PARTITIONS 10;
Warnings:
Warning	1681	Column 'testdb.t3.a' having prefix key part 'a(2)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

# Should not show deprecation warnings if prefix key is not used
# in the PARTITION BY KEY() clause.
CREATE TABLE testdb.t4 (
a VARCHAR (200),
b VARCHAR (10),
c VARCHAR (100),
KEY (a),
KEY (b(5))
) PARTITION BY KEY(c) PARTITIONS 10;

# Should not show deprecation warnings for CREATE TABLE LIKE.
CREATE TABLE testdb.l1 LIKE testdb.t1;

# Should show deprecation warnings for ALTER TABLE on affected tables.

ALTER TABLE testdb.t1 COMMENT='t1';
Warnings:
Warning	1681	Column 'testdb.t1.a' having prefix key part 'a(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.
Warning	1681	Column 'testdb.t1.c' having prefix key part 'c(2)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

# Should show deprecation warnings if a table having prefix keys is
# altered to be partitioned by key.
CREATE TABLE testdb.t5 (
a VARCHAR (10000),
b VARCHAR (25),
c VARCHAR (10),
PRIMARY KEY (a(10),b,c(2))
);
ALTER TABLE testdb.t5 PARTITION BY KEY() PARTITIONS 10;
Warnings:
Warning	1681	Column 'testdb.t5.a' having prefix key part 'a(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.
Warning	1681	Column 'testdb.t5.c' having prefix key part 'c(2)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

# Should not show deprecation warnings on removing partitioning from an
# affected table.
ALTER TABLE testdb.t5 REMOVE PARTITIONING;

# Should not show deprecation warning if prefix length = column length.
CREATE TABLE testdb.t6 (
a VARCHAR (200),
b VARCHAR (10),
PRIMARY KEY (a(200),b)
) PARTITION BY KEY() PARTITIONS 10;

# Should not show deprecation warnings for RENAME TABLE.
RENAME TABLE testdb.t1 TO testdb.t1_renamed;

# Should show deprecation warnings if prefix key is used in the
# PARTITION BY KEY() clause, regardless of lettercase.
CREATE TABLE testdb.t7 (
a VARCHAR (200),
b VARCHAR (10),
c VARCHAR (100),
KEY (a),
KEY (b(5))
) PARTITION BY KEY(B) PARTITIONS 2;
Warnings:
Warning	1681	Column 'testdb.t7.b' having prefix key part 'b(5)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t8 (
A VARCHAR (200),
B VARCHAR (10),
C VARCHAR (100),
KEY (A),
KEY (B(5))
) PARTITION BY KEY(b) PARTITIONS 2;
Warnings:
Warning	1681	Column 'testdb.t8.B' having prefix key part 'B(5)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

# Should not show deprecation warnings when there is no index.
CREATE TABLE testdb.m1 (
firstname VARCHAR (25) NOT NULL,
lastname VARCHAR (25) NOT NULL,
username VARCHAR (16) NOT NULL,
email VARCHAR (35),
joined DATE NOT NULL
) PARTITION BY KEY(joined) PARTITIONS 6;

# Should not show deprecation warnings for table partitioned by range.
CREATE TABLE testdb.m2 (
firstname VARCHAR (25) NOT NULL,
lastname VARCHAR (25) NOT NULL,
username VARCHAR (16) NOT NULL,
email VARCHAR (35),
joined DATE NOT NULL
) PARTITION BY RANGE(YEAR(joined)) (
PARTITION p0 VALUES LESS THAN (1960),
PARTITION p1 VALUES LESS THAN (1970),
PARTITION p2 VALUES LESS THAN (1980),
PARTITION p3 VALUES LESS THAN (1990),
PARTITION p4 VALUES LESS THAN MAXVALUE
);

# Should not show deprecation warnings for table with a prefix key
# partitioned by range
CREATE TABLE testdb.m3 (
firstname VARCHAR (25) NOT NULL,
lastname VARCHAR (25) NOT NULL,
username VARCHAR (16) NOT NULL,
email VARCHAR (35),
joined DATE NOT NULL,
PRIMARY KEY(firstname(5),joined)
) PARTITION BY RANGE(YEAR(joined)) (
PARTITION p0 VALUES LESS THAN (1960),
PARTITION p1 VALUES LESS THAN (1970),
PARTITION p2 VALUES LESS THAN (1980),
PARTITION p3 VALUES LESS THAN (1990),
PARTITION p4 VALUES LESS THAN MAXVALUE
);

# Should show deprecation warnings for combinations of column type
# CHAR|VARCHAR|BINARY|VARBINARY, [LINEAR] KEY, and ALGORITHM=1|2

CREATE TABLE testdb.t_char_linear_alg1 (
prefix_col CHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_char_linear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varchar_linear_alg1 (
prefix_col VARCHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varchar_linear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_binary_linear_alg1 (
prefix_col BINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_binary_linear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varbinary_linear_alg1 (
prefix_col VARBINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varbinary_linear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_char_nonlinear_alg1 (
prefix_col CHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_char_nonlinear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varchar_nonlinear_alg1 (
prefix_col VARCHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varchar_nonlinear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_binary_nonlinear_alg1 (
prefix_col BINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_binary_nonlinear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varbinary_nonlinear_alg1 (
prefix_col VARBINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=1 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varbinary_nonlinear_alg1.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_char_linear_alg2 (
prefix_col CHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_char_linear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varchar_linear_alg2 (
prefix_col VARCHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varchar_linear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_binary_linear_alg2 (
prefix_col BINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_binary_linear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varbinary_linear_alg2 (
prefix_col VARBINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY LINEAR KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varbinary_linear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_char_nonlinear_alg2 (
prefix_col CHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_char_nonlinear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varchar_nonlinear_alg2 (
prefix_col VARCHAR (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varchar_nonlinear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_binary_nonlinear_alg2 (
prefix_col BINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_binary_nonlinear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

CREATE TABLE testdb.t_varbinary_nonlinear_alg2 (
prefix_col VARBINARY (100),
other_col VARCHAR (5),
PRIMARY KEY (prefix_col(10), other_col)
) PARTITION BY KEY ALGORITHM=2 () PARTITIONS 3;
Warnings:
Warning	1681	Column 'testdb.t_varbinary_nonlinear_alg2.prefix_col' having prefix key part 'prefix_col(10)' is ignored by the partitioning function. Use of prefixed columns in the PARTITION BY KEY() clause is deprecated and will be removed in a future release.

# Cleanup.

DROP SCHEMA testdb;

# WL#14064 Deprecate INFORMATION_SCHEMA.TABLESPACES

# Should show a deprecation warning in all cases.
SELECT * FROM INFORMATION_SCHEMA.TABLESPACES;
TABLESPACE_NAME	ENGINE	TABLESPACE_TYPE	LOGFILE_GROUP_NAME	EXTENT_SIZE	AUTOEXTEND_SIZE	MAXIMUM_SIZE	NODEGROUP_ID	TABLESPACE_COMMENT
Warnings:
Warning	1681	'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release.
SELECT * FROM INFORMATION_SCHEMA.tablespaces;
TABLESPACE_NAME	ENGINE	TABLESPACE_TYPE	LOGFILE_GROUP_NAME	EXTENT_SIZE	AUTOEXTEND_SIZE	MAXIMUM_SIZE	NODEGROUP_ID	TABLESPACE_COMMENT
Warnings:
Warning	1681	'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release.
SELECT * FROM INFORMATION_SCHEMA.TABLES JOIN INFORMATION_SCHEMA.TABLESPACES;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE	ENGINE	VERSION	ROW_FORMAT	TABLE_ROWS	AVG_ROW_LENGTH	DATA_LENGTH	MAX_DATA_LENGTH	INDEX_LENGTH	DATA_FREE	AUTO_INCREMENT	CREATE_TIME	UPDATE_TIME	CHECK_TIME	TABLE_COLLATION	CHECKSUM	CREATE_OPTIONS	TABLE_COMMENT	TABLESPACE_NAME	ENGINE	TABLESPACE_TYPE	LOGFILE_GROUP_NAME	EXTENT_SIZE	AUTOEXTEND_SIZE	MAXIMUM_SIZE	NODEGROUP_ID	TABLESPACE_COMMENT
Warnings:
Warning	1681	'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release.
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME IN (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLESPACES);
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE	ENGINE	VERSION	ROW_FORMAT	TABLE_ROWS	AVG_ROW_LENGTH	DATA_LENGTH	MAX_DATA_LENGTH	INDEX_LENGTH	DATA_FREE	AUTO_INCREMENT	CREATE_TIME	UPDATE_TIME	CHECK_TIME	TABLE_COLLATION	CHECKSUM	CREATE_OPTIONS	TABLE_COMMENT
Warnings:
Warning	1681	'INFORMATION_SCHEMA.TABLESPACES' is deprecated and will be removed in a future release.