mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Move plugin declarations after system functions have been checked (Fixes problem with ndb_config failing becasue SHM is not declared) Fixed some memory leaks configure.in: Move plugin declarations after system functions have been checked (Fixes problem with ndb_config failing becasue SHM is not declared) mysql-test/t/disabled.def: Disabled ndb_load, as it is in 5.0 (Fails randomly in binlog_close_connection()) mysql-test/t/log_tables.test: Update error numbers mysql-test/t/ndb_config.test: Moved test depending on SHM to ndb_config2.test mysql-test/t/ndb_partition_error.test: Update error numbers sql/event_timed.cc: Removed not needed line sql/ha_berkeley.cc: Fixed compiler warning sql/ha_heap.cc: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/ha_partition.cc: Fixed compiler warning sql/mysql_priv.h: After merge fix sql/mysqld.cc: Fixed memory leak in skip_grant.test sql/share/errmsg.txt: Removed wrong error messages sql/sql_lex.cc: More debugging Faster lex_end() sql/sql_partition.cc: Fixed memory leak sql/sql_view.cc: Fixed memory leak mysql-test/r/ndb_config2.result: New BitKeeper file ``mysql-test/r/ndb_config2.result'' mysql-test/t/ndb_config2.test: New BitKeeper file ``mysql-test/t/ndb_config2.test''
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| -- source include/have_ndb.inc
 | |
| #--disable_abort_on_error
 | |
| #
 | |
| # Simple test for the partition storage engine
 | |
| # Focuses on range partitioning tests
 | |
| # 
 | |
| #-- source include/have_partition.inc
 | |
| 
 | |
| --disable_warnings
 | |
| drop table if exists t1;
 | |
| --enable_warnings
 | |
| 
 | |
| #
 | |
| # Partition by range, generate node group error
 | |
| #
 | |
| --error 1005
 | |
| 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);
 | |
| show warnings;
 | |
| 
 | |
| #
 | |
| # Partition by range, create normal valid table 
 | |
| #
 | |
| 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;
 | |
| 
 | |
| #
 | |
| # Bug #17763 mysqld cores with list partitioning if update to missing partition
 | |
| #
 | |
| 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);
 | |
| --error ER_NO_PARTITION_FOR_GIVEN_VALUE
 | |
| UPDATE t1 SET id=5 WHERE id=2;
 | |
| DROP TABLE t1;
 | |
| 
 | |
| #
 | |
| # NULL for LIST partition
 | |
| #
 | |
| 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));
 | |
| --error ER_NO_PARTITION_FOR_GIVEN_VALUE
 | |
| insert into t1 values (NULL,1,1);
 | |
| drop table t1;
 |