mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
branches/zip: mysql-test/patches/innodb_file_per_table.diff:
@@GLOBAL.innodb_file_per_table can be 0 or 1, while SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_file_per_table' can be 'OFF' or 'ON'. For some reason, MySQL evaluates (0 = 'OFF') to 1 and (1 = 'ON') to 0. Thus, the test would fail if innodb_file_per_table is set.
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
diff mysql-test/t/innodb_file_per_table_basic.test.orig mysql-test/t/innodb_file_per_table_basic.test
|
||||||
--- mysql-test/t/innodb_file_per_table_basic.test.orig 2008-10-07 11:32:30.000000000 +0300
|
--- mysql-test/t/innodb_file_per_table_basic.test.orig 2008-10-07 11:32:30.000000000 +0300
|
||||||
+++ mysql-test/t/innodb_file_per_table_basic.test 2008-10-07 11:52:14.000000000 +0300
|
+++ mysql-test/t/innodb_file_per_table_basic.test 2008-10-07 11:52:14.000000000 +0300
|
||||||
@@ -37,10 +37,6 @@
|
@@ -37,10 +37,6 @@
|
||||||
@ -11,9 +12,19 @@
|
|||||||
SELECT COUNT(@@GLOBAL.innodb_file_per_table);
|
SELECT COUNT(@@GLOBAL.innodb_file_per_table);
|
||||||
--echo 1 Expected
|
--echo 1 Expected
|
||||||
|
|
||||||
|
@@ -52,7 +48,7 @@
|
||||||
|
# Check if the value in GLOBAL Table matches value in variable #
|
||||||
|
#################################################################
|
||||||
|
|
||||||
|
-SELECT @@GLOBAL.innodb_file_per_table = VARIABLE_VALUE
|
||||||
|
+SELECT IF(@@GLOBAL.innodb_file_per_table,'ON','OFF') = VARIABLE_VALUE
|
||||||
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||||
|
WHERE VARIABLE_NAME='innodb_file_per_table';
|
||||||
|
--echo 1 Expected
|
||||||
|
diff mysql-test/t/innodb_file_per_table_basic.result.orig mysql-test/t/innodb_file_per_table_basic.result
|
||||||
--- mysql-test/r/innodb_file_per_table_basic.result.orig 2008-10-07 11:32:02.000000000 +0300
|
--- mysql-test/r/innodb_file_per_table_basic.result.orig 2008-10-07 11:32:02.000000000 +0300
|
||||||
+++ mysql-test/r/innodb_file_per_table_basic.result 2008-10-07 11:52:47.000000000 +0300
|
+++ mysql-test/r/innodb_file_per_table_basic.result 2008-10-07 11:52:47.000000000 +0300
|
||||||
@@ -4,9 +4,6 @@
|
@@ -4,18 +4,15 @@
|
||||||
1
|
1
|
||||||
1 Expected
|
1 Expected
|
||||||
'#---------------------BS_STVARS_028_02----------------------#'
|
'#---------------------BS_STVARS_028_02----------------------#'
|
||||||
@ -23,3 +34,14 @@
|
|||||||
SELECT COUNT(@@GLOBAL.innodb_file_per_table);
|
SELECT COUNT(@@GLOBAL.innodb_file_per_table);
|
||||||
COUNT(@@GLOBAL.innodb_file_per_table)
|
COUNT(@@GLOBAL.innodb_file_per_table)
|
||||||
1
|
1
|
||||||
|
1 Expected
|
||||||
|
'#---------------------BS_STVARS_028_03----------------------#'
|
||||||
|
-SELECT @@GLOBAL.innodb_file_per_table = VARIABLE_VALUE
|
||||||
|
+SELECT IF(@@GLOBAL.innodb_file_per_table,'ON','OFF') = VARIABLE_VALUE
|
||||||
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||||
|
WHERE VARIABLE_NAME='innodb_file_per_table';
|
||||||
|
-@@GLOBAL.innodb_file_per_table = VARIABLE_VALUE
|
||||||
|
+IF(@@GLOBAL.innodb_file_per_table,'ON','OFF') = VARIABLE_VALUE
|
||||||
|
1
|
||||||
|
1 Expected
|
||||||
|
SELECT COUNT(@@GLOBAL.innodb_file_per_table);
|
||||||
|
Reference in New Issue
Block a user