mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Before this fix, the ha_read_last_count status variable was defined and updated internally, for never exposed as a system variable. This fix exposes the system variable as "Handler_read_last", for completness of the Handler_read_* system variables interface. Adjusted tests results accordingly.
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 | 
						|
#
 | 
						|
# This program is free software; you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU General Public License as published by
 | 
						|
# the Free Software Foundation; version 2 of the License.
 | 
						|
#
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU General Public License for more details.
 | 
						|
#
 | 
						|
# You should have received a copy of the GNU General Public License
 | 
						|
# along with this program; if not, write to the Free Software Foundation,
 | 
						|
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
DROP TABLE IF EXISTS t1;
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
CREATE TABLE t1 (a INT, INDEX (a));
 | 
						|
INSERT INTO t1 VALUES (),(),(),(),(),(),(),(),(),();
 | 
						|
 | 
						|
FLUSH STATUS;
 | 
						|
SELECT a FROM t1 ORDER BY a LIMIT 1;
 | 
						|
SHOW STATUS LIKE 'HANDLER_READ%';
 | 
						|
 | 
						|
FLUSH STATUS;
 | 
						|
SELECT a FROM t1 ORDER BY a DESC LIMIT 1;
 | 
						|
SHOW STATUS LIKE 'HANDLER_READ%';
 | 
						|
 | 
						|
FLUSH STATUS;
 | 
						|
SELECT a FROM t1 ORDER BY a LIMIT 3;
 | 
						|
SHOW STATUS LIKE 'HANDLER_READ%';
 | 
						|
 | 
						|
FLUSH STATUS;
 | 
						|
SELECT a FROM t1 ORDER BY a DESC LIMIT 3;
 | 
						|
SHOW STATUS LIKE 'HANDLER_READ%';
 | 
						|
 | 
						|
DROP TABLE t1;
 | 
						|
 |