mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-27 05:56:07 +03:00 
			
		
		
		
	 5487d7a8c0
			
		
	
	5487d7a8c0
	
	
	
		
			
			Removed usage of @r/result as this made life hard when testing different table handlers. Allow concurrent inserts if no update/binary log. Don't remove key_cache at flush tables. Fixed bug in SELECT DISTINCT SUM()...
		
			
				
	
	
		
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # sel000003
 | |
| #
 | |
| # Versions
 | |
| # --------
 | |
| #   3.22
 | |
| #   3.23
 | |
| #
 | |
| # Description
 | |
| # -----------
 | |
| # This test is just a simple select.
 | |
| # Testing count() function and GROUP BY clause.
 | |
| #
 | |
| 
 | |
| DROP TABLE IF EXISTS t1;
 | |
| CREATE TABLE t1 (name CHAR(20) NOT NULL PRIMARY KEY, score SMALLINT NOT NULL, KEY(score));
 | |
| INSERT INTO t1 VALUES ('Sasha', 20), ('Matt', 20), ('Monty', 10), ('David', 10), ('Tim', 10), ('Jeremy', 10);
 | |
| SELECT COUNT(*) as n, score FROM t1 GROUP BY score;
 | |
| drop table t1;
 |