List:Commits« Previous MessageNext Message »
From:marko.makela Date:April 21 2010 9:40am
Subject:bzr commit into mysql-5.1-innodb branch (marko.makela:3409) Bug#50495
View as plain text  
#At file:///home/marko/innobase/dev/mysql/5.1-innodb/ based on revid:marko.makela@strippedgmv5sizjru

 3409 Marko Mäkelä	2010-04-21
      Adjust tests for the Bug #50495 fix.

    modified:
      mysql-test/suite/innodb_plugin/r/innodb-zip.result
      mysql-test/suite/innodb_plugin/t/innodb-zip.test
      mysql-test/suite/innodb_plugin/t/innodb_bug36169.test
=== modified file 'mysql-test/suite/innodb_plugin/r/innodb-zip.result'
--- a/mysql-test/suite/innodb_plugin/r/innodb-zip.result	2010-04-09 12:56:51 +0000
+++ b/mysql-test/suite/innodb_plugin/r/innodb-zip.result	2010-04-21 09:40:32 +0000
@@ -127,6 +127,12 @@ CREATE TABLE t1(
 c TEXT NOT NULL, d TEXT NOT NULL,
 PRIMARY KEY (c(767),d(767)))
 ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
+DROP TABLE t1;
+SET SESSION innodb_strict_mode = on;
+CREATE TABLE t1(
+c TEXT NOT NULL, d TEXT NOT NULL,
+PRIMARY KEY (c(767),d(767)))
+ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
 ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
 CREATE TABLE t1(
 c TEXT NOT NULL, d TEXT NOT NULL,

=== modified file 'mysql-test/suite/innodb_plugin/t/innodb-zip.test'
--- a/mysql-test/suite/innodb_plugin/t/innodb-zip.test	2010-04-09 12:56:51 +0000
+++ b/mysql-test/suite/innodb_plugin/t/innodb-zip.test	2010-04-21 09:40:32 +0000
@@ -85,8 +85,14 @@ SELECT table_schema, table_name, row_for
 FROM information_schema.tables WHERE engine='innodb';
 drop table t1,t2;
 
-# The following should fail even in non-strict mode.
+# The following should not fail in non-strict mode. (Bug #50945)
 SET SESSION innodb_strict_mode = off;
+CREATE TABLE t1(
+	c TEXT NOT NULL, d TEXT NOT NULL,
+	PRIMARY KEY (c(767),d(767)))
+ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
+DROP TABLE t1;
+SET SESSION innodb_strict_mode = on;
 --error ER_TOO_BIG_ROWSIZE
 CREATE TABLE t1(
 	c TEXT NOT NULL, d TEXT NOT NULL,

=== modified file 'mysql-test/suite/innodb_plugin/t/innodb_bug36169.test'
--- a/mysql-test/suite/innodb_plugin/t/innodb_bug36169.test	2010-04-09 12:56:51 +0000
+++ b/mysql-test/suite/innodb_plugin/t/innodb_bug36169.test	2010-04-21 09:40:32 +0000
@@ -24,6 +24,7 @@ SET GLOBAL innodb_file_per_table=ON;
 # Generating 10 tables
 # Creating a table with 94 columns and 24 indexes
 DROP TABLE IF EXISTS `table0`;
+set innodb_strict_mode=on;
 --error ER_TOO_BIG_ROWSIZE
 CREATE TABLE IF NOT EXISTS `table0`
 (`col0` BOOL,

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20100421094032-ir4glqk46qvg2ywn.bundle
Thread
bzr commit into mysql-5.1-innodb branch (marko.makela:3409) Bug#50495marko.makela21 Apr