Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  partition_key_algorithm,mysql55.rdiff  Sprache: unbekannt

 
Spracherkennung für: .rdiff vermutete Sprache: SQL {SQL[114] Lisp[44] Masm[44]} [Methode: maximale Elemente, drei Dimensionen]

--- ../src/mysql-test/main/partition_key_algorithm.result 2026-01-19 14:12:35.390091511 +1100
+++ ../src/mysql-test/main/partition_key_algorithm,mysql55.reject 2026-01-19 14:12:47.470013127 +1100
@@ -1,6 +1,6 @@
 # MDEV-9826 better hash algorithms for PARTITION BY KEY
 ## MDEV-9826 case with NULL
-create table t1(c1 int, c2 date) partition by key  (c2) partitions 8;
+create table t1(c1 int, c2 date) partition by key ALGORITHM=MYSQL55 (c2) partitions 8;
 show create table t1;
 Table Create Table
 t1 CREATE TABLE `t1` (
@@ -43,7 +43,7 @@
 1 2014-04-29
 drop table t1;
 ## MDEV-9826 case with more dates
-create table t1(c1 int, c2 date) partition by key  (c2) partitions 8;
+create table t1(c1 int, c2 date) partition by key ALGORITHM=MYSQL55 (c2) partitions 8;
 show create table t1;
 Table Create Table
 t1 CREATE TABLE `t1` (
@@ -66,7 +66,7 @@
 p7 0
 drop table t1;
 ## MDEV-9826 case with more dates and linear key
-create table t1(c1 int, c2 date) partition by linear key  (c2) partitions 8;
+create table t1(c1 int, c2 date) partition by linear key ALGORITHM=MYSQL55 (c2) partitions 8;
 show create table t1;
 Table Create Table
 t1 CREATE TABLE `t1` (
@@ -89,7 +89,7 @@
 p7 0
 drop table t1;
 ## MDEV-9826 case with more dates and multiple keys
-create table t1(c1 int, c2 date) partition by key  (c1, c2) partitions 8;
+create table t1(c1 int, c2 date) partition by key ALGORITHM=MYSQL55 (c1, c2) partitions 8;
 show create table t1;
 Table Create Table
 t1 CREATE TABLE `t1` (
@@ -112,14 +112,14 @@
 p7 0
 drop table t1;
 ## MDEV-20791 case with INET6
-create table t1 (a inet6) partition by key  (a) partitions 2;
+create table t1 (a inet6) partition by key ALGORITHM=MYSQL55 (a) partitions 2;
 insert into t1 values ('0:db8::ff00:42:8329'),('2001:db8::ff00:42:8329'),('::'),('::192.0.2.128'),('::ffff:192.0.2.128');
 select partition_name, table_rows from information_schema.partitions where table_name='t1';
 partition_name table_rows
 p0 0
 p1 5
 ### here we test hash values using an odd prime number of partitions
-alter table t1 partition by key  (a) partitions 7;
+alter table t1 partition by key ALGORITHM=MYSQL55 (a) partitions 7;
 select partition_name, table_rows from information_schema.partitions where table_name='t1';
 partition_name table_rows
 p0 1
@@ -130,7 +130,7 @@
 p5 0
 p6 0
 ### partition by linear key where mask (7) > num_parts (6)
-alter table t1 partition by linear key  (a) partitions 6;
+alter table t1 partition by linear key ALGORITHM=MYSQL55 (a) partitions 6;
 select partition_name, table_rows from information_schema.partitions where table_name='t1';
 partition_name table_rows
 p0 0
@@ -141,7 +141,7 @@
 p5 0
 drop table t1;
 ## MDEV-20791 case with BINARY
-CREATE TABLE t1 (a BINARY(16)) PARTITION BY KEY  (a) PARTITIONS 2;
+CREATE TABLE t1 (a BINARY(16)) PARTITION BY KEY ALGORITHM=MYSQL55 (a) PARTITIONS 2;
 INSERT INTO t1 VALUES (X'00000DB8000000000000FF0000428329');
 INSERT INTO t1 VALUES (X'20010DB8000000000000FF0000428329');
 INSERT INTO t1 VALUES (X'00000000000000000000000000000000');
@@ -153,7 +153,7 @@
 p1 5
 drop table t1;
 ## MDEV-20791 case with more rows
-create table t1 (a inet6) partition by key  (a) partitions 2;
+create table t1 (a inet6) partition by key ALGORITHM=MYSQL55 (a) partitions 2;
 insert into t1 select concat(hex(seq), ':db8::ff00:42:8329') from seq_0_to_65535;
 select partition_name, table_rows from information_schema.partitions where table_name='t1';
 partition_name table_rows
@@ -176,7 +176,7 @@
 60
 6060
 606060
-ALTER TABLE t1  PARTITION BY KEY  (a) PARTITIONS 3;
+ALTER TABLE t1  PARTITION BY KEY ALGORITHM=MYSQL55 (a) PARTITIONS 3;
 SELECT HEX(a) FROM t1 WHERE a=0x60;
 HEX(a)
 20
@@ -193,7 +193,7 @@
 60
 6060
 606060
-ALTER TABLE t1  PARTITION BY KEY  (a) PARTITIONS 3;
+ALTER TABLE t1  PARTITION BY KEY ALGORITHM=MYSQL55 (a) PARTITIONS 3;
 SELECT HEX(a) FROM t1 WHERE a=0x60;
 HEX(a)
 20
@@ -210,7 +210,7 @@
 A0
 A0A0
 A0A0A0
-ALTER TABLE t1  PARTITION BY KEY  (a) PARTITIONS 3;
+ALTER TABLE t1  PARTITION BY KEY ALGORITHM=MYSQL55 (a) PARTITIONS 3;
 SELECT HEX(a) FROM t1 WHERE a=0xA0;
 HEX(a)
 20
@@ -220,13 +220,13 @@
 DROP TABLE t1;
 ## MDEV-38549 MDEV-9826 derived a bug for numeric columns from
 ## the old hash design
-CREATE OR REPLACE TABLE t1 (c1 INT NOT NULL) PARTITION BY KEY  (c1) PARTITIONS 16;
+CREATE OR REPLACE TABLE t1 (c1 INT NOT NULL) PARTITION BY KEY ALGORITHM=MYSQL55 (c1) PARTITIONS 16;
 INSERT INTO t1 VALUES (0x41),(0x61);
 SELECT table_name, partition_name, table_rows FROM information_schema.partitions
 WHERE table_name='t1' AND table_rows>0;
 table_name partition_name table_rows
 t1 p4 2
-ALTER TABLE t1 PARTITION BY KEY  (c1) PARTITIONS 7;
+ALTER TABLE t1 PARTITION BY KEY ALGORITHM=MYSQL55 (c1) PARTITIONS 7;
 SELECT table_name, partition_name, table_rows FROM information_schema.partitions
 WHERE table_name='t1' AND table_rows>0;
 table_name partition_name table_rows

[Dauer der Verarbeitung: 0.10 Sekunden, vorverarbeitet 2026-10-08]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1897691