mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Adding back ndb partition tests from mysql-test-extra per tomas and clavin new file mysql-test/t/ndb_partition_error.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/t/ndb_partition_key.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/t/ndb_partition_list.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/t/ndb_partition_range.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/t/ndb_blob_partition.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/t/ndb_dd_backuprestore.test: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_partition_error.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_partition_key.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_partition_list.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_partition_range.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_blob_partition.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin mysql-test/r/ndb_dd_backuprestore.result: Adding back ndb partition tests from mysql-test-extra per tomas and clavin
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| drop table if exists t1;
 | |
| CREATE TABLE t1 (
 | |
| a int not null,
 | |
| b int not null,
 | |
| c int not null,
 | |
| primary key(a,b),
 | |
| index (a))
 | |
| engine = ndb
 | |
| partition by range (a)
 | |
| partitions 3
 | |
| (partition x1 values less than (5) nodegroup 12,
 | |
| partition x2 values less than (10) nodegroup 13,
 | |
| partition x3 values less than (20) nodegroup 14);
 | |
| ERROR HY000: Can't create table 'test.t1' (errno: 140)
 | |
| show warnings;
 | |
| Level	Code	Message
 | |
| Error	1296	Got error 771 'Given NODEGROUP doesn't exist in this cluster' from NDB
 | |
| Error	1005	Can't create table 'test.t1' (errno: 140)
 | |
| CREATE TABLE t1 (
 | |
| a int not null,
 | |
| b int not null,
 | |
| c int not null,
 | |
| primary key(a))
 | |
| engine = ndb
 | |
| partition by range (a)
 | |
| partitions 3
 | |
| (partition x1 values less than (5),
 | |
| partition x2 values less than (10),
 | |
| partition x3 values less than (20));
 | |
| drop table t1;
 | |
| CREATE TABLE t1 (id INT) ENGINE=NDB
 | |
| PARTITION BY LIST(id)
 | |
| (PARTITION p0 VALUES IN (2, 4),
 | |
| PARTITION p1 VALUES IN (42, 142));
 | |
| INSERT INTO t1 VALUES (2);
 | |
| UPDATE t1 SET id=5 WHERE id=2;
 | |
| ERROR HY000: Table has no partition for value 5
 | |
| DROP TABLE t1;
 | |
| create table t1 (a int,b int, c int)
 | |
| engine = ndb
 | |
| partition by list(a)
 | |
| partitions 2
 | |
| (partition x123 values in (11, 12),
 | |
| partition x234 values in (5, 1));
 | |
| insert into t1 values (NULL,1,1);
 | |
| ERROR HY000: Table has no partition for value NULL
 | |
| drop table t1;
 |