summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2009-08-11 14:18:26 +0200
committerMattias Jonsson <mattias.jonsson@sun.com>2009-08-11 14:18:26 +0200
commitd316827a5f24e626e02a6d537ed891180df7fd94 (patch)
tree86848cdcb8f64a0a418a1a7e864176e64b6a80e3 /mysql-test/r
parent31c6256c3e1eca9b7c0339abf083ab3658948bcf (diff)
downloadmariadb-git-d316827a5f24e626e02a6d537ed891180df7fd94.tar.gz
Bug#44622: Using PARTITIONs with ARCHIVE engine reports 0 bytes in i_s.TABLES
Problem was that ha_archive::info did not use the flag argument correctly fixed so that it updated the correct values depending on the flag. mysql-test/r/partition_archive.result: Bug#44622: Using PARTITIONs with ARCHIVE engine reports 0 bytes in i_s.TABLES Updated testresult mysql-test/t/partition_archive.test: Bug#44622: Using PARTITIONs with ARCHIVE engine reports 0 bytes in i_s.TABLES Added testcase storage/archive/ha_archive.cc: Bug#44622: Using PARTITIONs with ARCHIVE engine reports 0 bytes in i_s.TABLES Fixed ha_archive::info() so that it updated the correct values depending on the flag. (did it all only if HA_STATUS_TIME before...)
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/partition_archive.result22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/partition_archive.result b/mysql-test/r/partition_archive.result
index de64b09e042..186a7930251 100644
--- a/mysql-test/r/partition_archive.result
+++ b/mysql-test/r/partition_archive.result
@@ -1,3 +1,25 @@
+CREATE TABLE t1 (f1 DATE NOT NULL)
+ENGINE = ARCHIVE PARTITION BY RANGE (TO_DAYS(f1))
+(partition p1 values less than (733751),
+partition p2 values less than MAXVALUE);
+INSERT INTO t1 VALUES(CURRENT_DATE);
+SELECT DATA_LENGTH, INDEX_LENGTH FROM information_schema.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
+DATA_LENGTH INDEX_LENGTH
+190 0
+SELECT DATA_LENGTH, INDEX_LENGTH FROM information_schema.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
+DATA_LENGTH INDEX_LENGTH
+190 0
+DROP TABLE t1;
+CREATE TABLE t1 (f1 DATE NOT NULL)
+ENGINE = ARCHIVE;
+INSERT INTO t1 VALUES(CURRENT_DATE);
+SELECT DATA_LENGTH, INDEX_LENGTH FROM information_schema.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
+DATA_LENGTH INDEX_LENGTH
+8658 0
+SELECT DATA_LENGTH, INDEX_LENGTH FROM information_schema.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
+DATA_LENGTH INDEX_LENGTH
+8658 0
+DROP TABLE t1;
drop database if exists db99;
drop table if exists t1;
create database db99;