Commit 122a09d2 authored by unknown's avatar unknown

BUG#22240 Upgrading from cluster 5.0 to 5.1 does not resize VARCHARS as expected.

         add varchar type restoring test from 5.0 backup into 5.1


mysql-test/r/ndb_restore_compat.result:
  add test result for varchar type from 5.0 version backup into 5.1
mysql-test/t/ndb_restore_compat.test:
  add test for varchar type restoring from 5.0 backup into 5.1
mysql-test/std_data/ndb_backup50/BACKUP-2-0.1.Data:
  backup data
mysql-test/std_data/ndb_backup50/BACKUP-2-0.2.Data:
  backup data
mysql-test/std_data/ndb_backup50/BACKUP-2.1.ctl:
  meta data of 5.0 backup
mysql-test/std_data/ndb_backup50/BACKUP-2.1.log:
  log data of 5.0 backup
mysql-test/std_data/ndb_backup50/BACKUP-2.2.ctl:
  meta data of 5.0 backup
mysql-test/std_data/ndb_backup50/BACKUP-2.2.log:
  log data of 5.0 backup
parent d520cd08
...@@ -111,4 +111,10 @@ SYSTEM_VALUES_ID VALUE ...@@ -111,4 +111,10 @@ SYSTEM_VALUES_ID VALUE
SELECT * FROM mysql.ndb_apply_status WHERE server_id=0; SELECT * FROM mysql.ndb_apply_status WHERE server_id=0;
server_id epoch log_name start_pos end_pos server_id epoch log_name start_pos end_pos
0 331 0 0 0 331 0 0
SELECT * FROM DESCRIPTION;
USERNAME ADDRESS
Guangbao Ni Suite 503, 5F NCI Tower, A12 Jianguomenwai Avenue Chaoyang District, Beijing, 100022 PRC
David Li Suite 503, 5F NCI Tower, A12 Jianguomenwai Avenue Chaoyang District, Beijing, 100022 PRC
USERNAME Varchar(255;latin1_swedish_ci) NULL AT=SHORT_VAR ST=MEMORY
ADDRESS Longvarchar(2002;latin1_swedish_ci) NULL AT=MEDIUM_VAR ST=MEMORY
DROP DATABASE BANK; DROP DATABASE BANK;
...@@ -58,4 +58,10 @@ SELECT * FROM ACCOUNT ORDER BY ACCOUNT_ID; ...@@ -58,4 +58,10 @@ SELECT * FROM ACCOUNT ORDER BY ACCOUNT_ID;
SELECT COUNT(*) FROM TRANSACTION; SELECT COUNT(*) FROM TRANSACTION;
SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID; SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
SELECT * FROM mysql.ndb_apply_status WHERE server_id=0; SELECT * FROM mysql.ndb_apply_status WHERE server_id=0;
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults -b 2 -n 1 -m -p 1 -s -r $MYSQL_TEST_DIR/std_data/ndb_backup50 >> $NDB_TOOLS_OUTPUT
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults -b 2 -n 2 -p 1 -s -r $MYSQL_TEST_DIR/std_data/ndb_backup50 >> $NDB_TOOLS_OUTPUT
SELECT * FROM DESCRIPTION;
--exec $NDB_TOOLS_DIR/ndb_desc --no-defaults -d BANK DESCRIPTION | grep SHORT_VAR
--exec $NDB_TOOLS_DIR/ndb_desc --no-defaults -d BANK DESCRIPTION | grep MEDIUM_VAR
DROP DATABASE BANK; DROP DATABASE BANK;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment