mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	- Additional fixes caused by running without anonymous users mysql-test/r/federated_server.result: There are no default server in mysql.servers anymore The test will create it's own test servers mysql-test/r/rpl_read_only.result: Update result mysql-test/r/rpl_row_USER.result: Update test result, it basically checks that the values return by USER() and CURRENT_USER() are the same on master and slave, so it's doing the correct thing. Since connection m_1 is logged in as ''@localhost% that is what will end up in the log. mysql-test/t/ndb_multi_row.test: Connect as root instead of '' which would pick currently logged in user mysql-test/t/rpl_read_only.test: Add user test with no privs(no anonymous by default anymore)
		
			
				
	
	
		
			77 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			77 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| -- source include/have_ndb.inc
 | |
| -- source include/have_multi_ndb.inc
 | |
| -- source include/not_embedded.inc
 | |
| -- source include/have_binlog_format_row.inc
 | |
| 
 | |
| 
 | |
| --disable_warnings
 | |
| connection server2;
 | |
| drop table if exists t1, t2, t3, t4;
 | |
| connection server1;
 | |
| drop table if exists t1, t2, t3, t4;
 | |
| --enable_warnings
 | |
| 
 | |
| flush status;
 | |
| 
 | |
| # Create test tables on server1
 | |
| create table t1 (a int) engine=ndbcluster;
 | |
| create table t2 (a int) engine=ndbcluster;
 | |
| insert into t1 value (2);
 | |
| insert into t2 value (3);
 | |
| select * from t1;
 | |
| select * from t2;
 | |
| show status like 'handler_discover%';
 | |
| 
 | |
| # Check dropping and recreating table on same server
 | |
| connect (con1,localhost,root,,test);
 | |
| connect (con2,localhost,root,,test);
 | |
| connection con1;
 | |
| select * from t1;
 | |
| connection con2;
 | |
| drop table t1;
 | |
| create table t1 (a int) engine=ndbcluster;
 | |
| insert into t1 value (2);
 | |
| connection con1;
 | |
| select * from t1;
 | |
| 
 | |
| # Check dropping and recreating table on different server
 | |
| connection server2;
 | |
| show status like 'handler_discover%';
 | |
| drop table t1;
 | |
| create table t1 (a int) engine=ndbcluster;
 | |
| insert into t1 value (2);
 | |
| connection server1;
 | |
| ## Currently a retry is required remotely
 | |
| #--error 1412
 | |
| #select * from t1;
 | |
| #show warnings;
 | |
| #flush table t1;
 | |
| # Table definition change should be propagated automatically
 | |
| select * from t1;
 | |
| 
 | |
| # Connect to server2 and use the tables from there
 | |
| connection server2;
 | |
| flush status;
 | |
| select * from t1;
 | |
| update t1 set a=3 where a=2;
 | |
| show status like 'handler_discover%';
 | |
| 
 | |
| # Create a new table on server2
 | |
| create table t3 (a int not null primary key, b varchar(22),
 | |
| c int, last_col text) engine=ndb;
 | |
| insert into t3 values(1, 'Hi!', 89, 'Longtext column');
 | |
| create table t4 (pk int primary key, b int) engine=ndb;
 | |
| 
 | |
| # Check that the tables are accessible from server1
 | |
| connection server1;
 | |
| select * from t1;
 | |
| select * from t3;
 | |
| show tables like 't4';
 | |
| show tables;
 | |
| 
 | |
| drop table t1, t2, t3, t4;
 | |
| connection server2;
 | |
| drop table if exists t1, t3, t4;
 | |
| 
 | |
| # End of 4.1 tests
 |