2804 Sergey Petrunia 2008-08-25 [merge]
Merge 5.1-opt -> 6.0-opt
modified:
mysql-test/r/myisam.result
mysql-test/t/myisam.test
sql/opt_range.cc
storage/myisam/mi_create.c
2803 Davi Arnaut 2008-08-26 [merge]
Merge of mysql-6.0 branch.
added:
mysql-test/include/mysqlbinlog_row_engine.inc
mysql-test/r/mysqlbinlog_row.result
mysql-test/r/mysqlbinlog_row_big.result
mysql-test/r/mysqlbinlog_row_innodb.result
mysql-test/r/mysqlbinlog_row_myisam.result
mysql-test/r/mysqlbinlog_row_trans.result
mysql-test/t/mysqlbinlog_row.test
mysql-test/t/mysqlbinlog_row_big.test
mysql-test/t/mysqlbinlog_row_innodb.test
mysql-test/t/mysqlbinlog_row_myisam.test
mysql-test/t/mysqlbinlog_row_trans.test
modified:
.bzrignore
client/Makefile.am
client/mysqlbinlog.cc
include/my_global.h
mysql-test/mysql-test-run.pl
mysql-test/r/maria.result
mysql-test/r/maria2.result
mysql-test/t/maria.test
mysql-test/t/maria2.test
mysql-test/valgrind.supp
mysys/my_pread.c
sql/handler.h
sql/log_event.cc
sql/log_event.h
sql/mdl.cc
sql/rpl_tblmap.cc
sql/rpl_tblmap.h
sql/rpl_utility.h
sql/sql_base.cc
sql/sql_select.cc
sql/sql_table.cc
storage/maria/ha_maria.cc
storage/maria/ma_blockrec.c
storage/maria/ma_check.c
storage/maria/ma_checkpoint.c
storage/maria/ma_close.c
storage/maria/ma_create.c
storage/maria/ma_dbug.c
storage/maria/ma_delete.c
storage/maria/ma_extra.c
storage/maria/ma_info.c
storage/maria/ma_keycache.c
storage/maria/ma_locking.c
storage/maria/ma_loghandler.c
storage/maria/ma_open.c
storage/maria/ma_pagecache.c
storage/maria/ma_recovery.c
storage/maria/ma_search.c
storage/maria/ma_state.c
storage/maria/ma_state.h
storage/maria/ma_update.c
storage/maria/ma_write.c
storage/maria/maria_def.h
storage/maria/maria_ftdump.c
storage/maria/maria_pack.c
storage/myisam/mi_search.c
=== modified file 'mysql-test/r/myisam.result'
--- a/mysql-test/r/myisam.result 2008-06-17 20:04:19 +0000
+++ b/mysql-test/r/myisam.result 2008-08-25 18:23:27 +0000
@@ -1848,6 +1848,28 @@ checksum table t3;
Table Checksum
test.t3 326284887
drop table t1,t2,t3;
+CREATE TABLE t1 (a INT) ENGINE=MyISAM CHECKSUM=1 ROW_FORMAT=DYNAMIC;
+INSERT INTO t1 VALUES (0);
+UPDATE t1 SET a=1;
+SELECT a FROM t1;
+a
+1
+CHECK TABLE t1;
+Table Op Msg_type Msg_text
+test.t1 check status OK
+INSERT INTO t1 VALUES (0), (5), (4), (2);
+UPDATE t1 SET a=2;
+SELECT a FROM t1;
+a
+2
+2
+2
+2
+2
+CHECK TABLE t1;
+Table Op Msg_type Msg_text
+test.t1 check status OK
+DROP TABLE t1;
End of 5.0 tests
create table t1 (a int not null, key `a` (a) key_block_size=1024);
show create table t1;
=== modified file 'mysql-test/t/myisam.test'
--- a/mysql-test/t/myisam.test 2008-06-17 20:04:19 +0000
+++ b/mysql-test/t/myisam.test 2008-08-25 18:23:27 +0000
@@ -1171,6 +1171,7 @@ SELECT * FROM t1;
DROP TABLE t1, t2;
+
#
# Test of BUG#35570 CHECKSUM TABLE unreliable if LINESTRING field
# (same content / differen checksum)
@@ -1186,6 +1187,20 @@ CREATE TABLE t3 select * from t1;
checksum table t3;
drop table t1,t2,t3;
+#
+# Bug#37310: 'on update CURRENT_TIMESTAMP' option crashes the table
+#
+CREATE TABLE t1 (a INT) ENGINE=MyISAM CHECKSUM=1 ROW_FORMAT=DYNAMIC;
+INSERT INTO t1 VALUES (0);
+UPDATE t1 SET a=1;
+SELECT a FROM t1;
+CHECK TABLE t1;
+INSERT INTO t1 VALUES (0), (5), (4), (2);
+UPDATE t1 SET a=2;
+SELECT a FROM t1;
+CHECK TABLE t1;
+DROP TABLE t1;
+
--echo End of 5.0 tests
=== modified file 'sql/opt_range.cc'
--- a/sql/opt_range.cc 2008-07-25 15:10:14 +0000
+++ b/sql/opt_range.cc 2008-08-25 18:23:27 +0000
@@ -8712,7 +8712,10 @@ QUICK_SELECT_DESC::QUICK_SELECT_DESC(QUI
used_key_parts (used_key_parts_arg)
{
QUICK_RANGE *r;
- /* Reverse MRR scans are currently not supported */
+ /*
+ Use default MRR implementation for reverse scans. No table engine
+ currently can do an MRR scan with output in reverse index order.
+ */
mrr_buf_desc= NULL;
mrr_flags |= HA_MRR_USE_DEFAULT_IMPL;
mrr_buf_size= 0;
=== modified file 'storage/myisam/mi_create.c'
--- a/storage/myisam/mi_create.c 2008-07-09 07:12:43 +0000
+++ b/storage/myisam/mi_create.c 2008-08-25 18:23:27 +0000
@@ -200,7 +200,7 @@ int mi_create(const char *name,uint keys
pack_bytes= (packed+7)/8;
if (pack_reclength != INT_MAX32)
pack_reclength+= reclength+packed +
- test(test_all_bits(options, HA_OPTION_CHECKSUM | HA_PACK_RECORD));
+ test(test_all_bits(options, HA_OPTION_CHECKSUM | HA_OPTION_PACK_RECORD));
min_pack_length+= pack_bytes;
if (!ci->data_file_length && ci->max_rows)
@@ -863,7 +863,7 @@ err_no_lock:
(void) my_close(dfile,MYF(0));
/* fall through */
case 2:
- /* QQ: T�nu should add a call to my_raid_delete() here */
+ /* QQ: T���nu should add a call to my_raid_delete() here */
if (! (flags & HA_DONT_TOUCH_DATA))
my_delete_with_symlink(fn_format(filename,name,"",MI_NAME_DEXT,
MY_UNPACK_FILENAME | MY_APPEND_EXT),
| Thread |
|---|
| • bzr push into mysql-6.0 branch (sergefp:2803 to 2804) | Sergey Petrunia | 26 Aug |