mariadb/mysql-test/r/maria-big.result
unknown 5ad477f6cb Added --with-maria-tmp-tables (default one) to allow on to configure if Maria should be used for internal temporary tables
Abort mysqld if Maria engine didn't start and we are using Maria for temporary tables
Fixed bug that caused update of big blobs to crash
Use pagecache_page_no_t as type for pages (to get rid of compiler warnings)
Added cast to get rid of compiler warning
Fixed wrong types of variables and arguments that caused lost information
Fixed wrong DBUG_ASSERT() that caused REDO of big blobs to fail
Removed some historical ifdefs that caused problem with windows compilations


BUILD/SETUP.sh:
  Added --with-maria-tmp-tables
include/maria.h:
  Use pagecache_page_no_t as type for pages
  Use my_bool as parameter for 'rep_quick' option
include/my_base.h:
  Added comment
mysql-test/r/maria-big.result:
  Added test that uses big blobs
mysql-test/t/maria-big.test:
  Added test that uses big blobs
sql/mysqld.cc:
  Abort mysqld if Maria engine didn't start and we are using Maria for temporary tables
sql/sql_class.h:
  Don't use Maria for temporary tables if --with-maria-tmp-tables is not defined
sql/sql_select.cc:
  Don't use Maria for temporary tables if --with-maria-tmp-tables is not defined
storage/maria/ha_maria.cc:
  Fixed compiler warnings reported by MCC
  - Fixed usage of wrong types that caused data loss
  - Changed parameter for rep_quick to my_bool
  - Added safe casts
  
  Fixed indentation
storage/maria/ma_bitmap.c:
  Use pagecache_page_no_t as type for pages
  Fixed compiler warnings
  Fixed bug that caused update of big blobs to crash
storage/maria/ma_blockrec.c:
  Use pagecache_page_no_t as type for pages
  Use my_bool as parameter for 'rep_quick' option
  Fixed compiler warnings
  Fixed wrong DBUG_ASSERT()
storage/maria/ma_blockrec.h:
  Use pagecache_page_no_t as type for pages
storage/maria/ma_check.c:
  Fixed some wrong parameters where we didn't get all bits for test_flag
  Changed rep_quick to be of type my_bool
  Use pagecache_page_no_t as type for pages
  Added cast's to get rid of compiler warnings
  Changed type of record_pos to get rid of compiler warning
storage/maria/ma_create.c:
  Added safe cast's to get rid of compiler warnings
storage/maria/ma_dynrec.c:
  Fixed usage of wrong type
storage/maria/ma_key.c:
  Fixed compiler warning
storage/maria/ma_key_recover.c:
  Use pagecache_page_no_t as type for pages
storage/maria/ma_loghandler_lsn.h:
  Added cast's to get rid of compiler warnings
storage/maria/ma_page.c:
  Changed variable name from 'page' to 'pos' as it was an offset and not a page address
  Moved page_size inside block to get rid of compiler warning
storage/maria/ma_pagecache.c:
  Fixed compiler warnings
  Replaced compile time assert with TODO
storage/maria/ma_pagecache.h:
  Use pagecache_page_no_t as type for pages
storage/maria/ma_pagecrc.c:
  Allow bitmap pages that is all zero
storage/maria/ma_preload.c:
  Added cast to get rid of compiler warning
storage/maria/ma_recovery.c:
  Changed types to get rid of compiler warnings
  Use bool for quick_repair to get rid of compiler warning
  Fixed some variables that was wrongly declared (not enough precission)
  Added cast to get rid of compiler warning
storage/maria/ma_test2.c:
  Remove historical undefs
storage/maria/maria_chk.c:
  Changed rep_quick to bool
  Fixed wrong parameter to maria_chk_data_link()
storage/maria/maria_def.h:
  Use pagecache_page_no_t as type for pages
storage/maria/maria_pack.c:
  Renamed isam -> maria
storage/maria/plug.in:
  Added option --with-maria-tmp-tables
storage/maria/trnman.c:
  Added cast to get rid of compiler warning
storage/myisam/mi_test2.c:
  Remove historical undefs
2008-01-10 21:21:36 +02:00

225 lines
6.6 KiB
Text

set storage_engine=maria;
affected rows: 0
set global maria_log_file_size=4294967295;
affected rows: 0
drop table if exists t1, t2;
affected rows: 0
create table t1(a char(3));
affected rows: 0
insert into t1 values("abc");
affected rows: 1
insert into t1 select "def" from t1;
affected rows: 1
info: Records: 1 Duplicates: 0 Warnings: 0
insert into t1 select "ghi" from t1;
affected rows: 2
info: Records: 2 Duplicates: 0 Warnings: 0
insert into t1 select "jkl" from t1;
affected rows: 4
info: Records: 4 Duplicates: 0 Warnings: 0
insert into t1 select "mno" from t1;
affected rows: 8
info: Records: 8 Duplicates: 0 Warnings: 0
insert into t1 select "pqr" from t1;
affected rows: 16
info: Records: 16 Duplicates: 0 Warnings: 0
insert into t1 select "stu" from t1;
affected rows: 32
info: Records: 32 Duplicates: 0 Warnings: 0
insert into t1 select "vwx" from t1;
affected rows: 64
info: Records: 64 Duplicates: 0 Warnings: 0
insert into t1 select "yza" from t1;
affected rows: 128
info: Records: 128 Duplicates: 0 Warnings: 0
insert into t1 select "ceg" from t1;
affected rows: 256
info: Records: 256 Duplicates: 0 Warnings: 0
insert into t1 select "ikm" from t1;
affected rows: 512
info: Records: 512 Duplicates: 0 Warnings: 0
insert into t1 select "oqs" from t1;
affected rows: 1024
info: Records: 1024 Duplicates: 0 Warnings: 0
select count(*) from t1;
count(*)
2048
affected rows: 1
insert into t1 select "uwy" from t1;
affected rows: 2048
info: Records: 2048 Duplicates: 0 Warnings: 0
create table t2 select * from t1;
affected rows: 4096
info: Records: 4096 Duplicates: 0 Warnings: 0
select count(*) from t1;
count(*)
4096
affected rows: 1
select count(*) from t2;
count(*)
4096
affected rows: 1
drop table t1, t2;
affected rows: 0
set @@max_allowed_packet=400000000;
affected rows: 0
create table t1 (a int, b longtext);
affected rows: 0
insert into t1 values (1,"123456789012345678901234567890"),(2,"09876543210987654321");
affected rows: 2
info: Records: 2 Duplicates: 0 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
select a,length(b) from t1;
a length(b)
1 251658240
2 167772160
affected rows: 2
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
affected rows: 1
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
select a,length(b) from t1;
a length(b)
1 60
2 40
affected rows: 2
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
affected rows: 1
drop table t1;
affected rows: 0