mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
257045499f
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.
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# 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;
|
|
|