mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	- moved the test into a separate file to check for presence of the test variable mysql-test/r/subselect.result: Bug#37627: moved the test to a separate file mysql-test/r/subselect_debug.result: Bug#37627: moved the test to a separate file mysql-test/t/subselect.test: Bug#37627: moved the test to a separate file mysql-test/t/subselect_debug.test: Bug#37627: moved the test to a separate file
		
			
				
	
	
		
			13 lines
		
	
	
		
			378 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			378 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| CREATE TABLE t1(id INT);
 | |
| INSERT INTO t1 VALUES (1),(2),(3),(4);
 | |
| INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
 | |
| SET SESSION debug="d,subselect_exec_fail";
 | |
| SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
 | |
| SUM(EXISTS(SELECT RAND() FROM t1))
 | |
| 0
 | |
| SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
 | |
| REVERSE(EXISTS(SELECT RAND() FROM t1))
 | |
| 0
 | |
| SET SESSION debug=DEFAULT;
 | |
| DROP TABLE t1;
 |