mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for
Bug#37167 funcs_1: Many tests fail if the embedded server is used. Bug#37164 funcs_1: Some tests fail if an optional character set is missing. + some cleanup within the testsuite related to the fixes above + some adjustments to open bugs on Mac OS X Details: - Remove the initial loading of data from tests if these data are not somewhere retrieved - Remove any use of columns with attribute unicode (-> UCS2 is no more needed) from tests where unicode properties are not checked or somehow required - Create a separate branch of the Character maximum length test (CML). If UCS2 is available than this test gets applied to every available type of string column with attribute unicode This prevents any loss of coverage by the points above. - Disable the execution of is_tables_ndb which gives wrong results because of a bug. Correct the exepected results of this test. - In case of tests failing when applied to the embedded server 1) Create a variant of this test for the embedded server or 2) Skip the test in case of embedded server depending on purpose and complexity of test. - Skip the tests which could suffer from Bug 28309 First insert violates unique constraint - was "memory" table empty ? Bug 37380 Test funcs_1.is_columns_myisam_embedded fails on OS X (both bugs Mac OS X, embedded server, MySQL 5.0 only) - Minor improvements like remove typos
This commit is contained in:
13
mysql-test/suite/funcs_1/include/bug28309_skip.inc
Normal file
13
mysql-test/suite/funcs_1/include/bug28309_skip.inc
Normal file
@ -0,0 +1,13 @@
|
||||
# Skip tests which suffer from
|
||||
# Bug#28309 First insert violates unique constraint
|
||||
# - was "memory" table empty?
|
||||
# if the folowing conditions are fulfilled:
|
||||
# - MySQL Version is 5.0 (Bug is fixed in 5.1 and up)
|
||||
# - use of embedded server
|
||||
# - run on a case insensitive filesystem
|
||||
#
|
||||
let $value= query_get_value(SHOW VARIABLES LIKE 'lower_case_file_system', Value, 1);
|
||||
if (`SELECT '$value' = 'ON' AND VERSION() LIKE '5.0%embedded%'`)
|
||||
{
|
||||
skip # Test requires backport of fix for Bug#28309 First insert violates unique constraint - was "memory" table empty ?;
|
||||
}
|
@ -7,7 +7,7 @@ create table tb1 (
|
||||
f1 char(0),
|
||||
f2 char(0) binary,
|
||||
f3 char(0) ascii,
|
||||
f4 tinytext unicode,
|
||||
f4 tinytext,
|
||||
f5 text,
|
||||
f6 mediumtext,
|
||||
f7 longtext,
|
||||
|
@ -10,7 +10,7 @@ f120 char ascii not null DEFAULT b'101',
|
||||
f121 tinytext,
|
||||
f122 text,
|
||||
f123 mediumtext,
|
||||
f124 longtext unicode,
|
||||
f124 longtext,
|
||||
f125 tinyblob,
|
||||
f126 blob,
|
||||
f127 mediumblob,
|
||||
|
@ -55,13 +55,13 @@ f223 year(3),
|
||||
f224 year(4),
|
||||
f225 enum("1enum","2enum"),
|
||||
f226 set("1set","2set"),
|
||||
f235 char(0) unicode,
|
||||
f235 char(0),
|
||||
f236 char(90),
|
||||
f237 char(255) ascii,
|
||||
f238 varchar(0),
|
||||
f239 varchar(20000) binary,
|
||||
f240 varchar(2000) unicode,
|
||||
f241 char(100) unicode
|
||||
f240 varchar(2000),
|
||||
f241 char(100)
|
||||
) engine = innodb;
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR <MYSQLTEST_VARDIR>
|
||||
|
@ -55,12 +55,12 @@ f223 year(3),
|
||||
f224 year(4),
|
||||
f225 enum("1enum","2enum"),
|
||||
f226 set("1set","2set"),
|
||||
f236 char(95) unicode,
|
||||
f241 char(255) unicode,
|
||||
f236 char(95),
|
||||
f241 char(255),
|
||||
f237 char(130) binary,
|
||||
f238 varchar(25000) binary,
|
||||
f239 varbinary(0),
|
||||
f240 varchar(1200) unicode
|
||||
f240 varchar(1200)
|
||||
) engine = memory;
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR <MYSQLTEST_VARDIR>
|
||||
|
@ -7,7 +7,7 @@ create table tb1 (
|
||||
f1 char,
|
||||
f2 char binary,
|
||||
f3 char ascii,
|
||||
f4 tinytext unicode,
|
||||
f4 tinytext,
|
||||
f5 text,
|
||||
f6 mediumtext,
|
||||
f7 longtext,
|
||||
|
@ -10,7 +10,7 @@ f120 char ascii not null DEFAULT b'101',
|
||||
f121 tinytext,
|
||||
f122 text,
|
||||
f123 mediumtext,
|
||||
f124 longtext unicode,
|
||||
f124 longtext,
|
||||
f125 tinyblob,
|
||||
f126 blob,
|
||||
f127 mediumblob,
|
||||
|
@ -63,13 +63,13 @@ f231 VARBINARY(192),
|
||||
f232 VARBINARY(27),
|
||||
f233 VARBINARY(64),
|
||||
f234 VARBINARY(192),
|
||||
f235 char(255) unicode,
|
||||
f235 char(255),
|
||||
f236 char(60) ascii,
|
||||
f237 char(255) binary,
|
||||
f238 varchar(0) binary,
|
||||
f239 varbinary(1000),
|
||||
f240 varchar(120) unicode,
|
||||
f241 char(100) unicode,
|
||||
f240 varchar(120),
|
||||
f241 char(100),
|
||||
f242 bit(30)
|
||||
) engine = myisam;
|
||||
|
||||
|
Reference in New Issue
Block a user