From a25e07bad8213c47d8c5c9bb94bbbc745a184cb0 Mon Sep 17 00:00:00 2001 From: marko <> Date: Tue, 7 Oct 2008 07:24:33 +0000 Subject: [PATCH] branches/zip: Patch the mysql-test suite, so that it will not fail because innodb_lock_wait_timeout is a settable session variable as of r2716. mysql-test/patches/innodb_lock_wait_timeout.diff: New file. --- .../patches/innodb_lock_wait_timeout.diff | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 mysql-test/patches/innodb_lock_wait_timeout.diff diff --git a/mysql-test/patches/innodb_lock_wait_timeout.diff b/mysql-test/patches/innodb_lock_wait_timeout.diff new file mode 100644 index 00000000000..81fe87f7c0d --- /dev/null +++ b/mysql-test/patches/innodb_lock_wait_timeout.diff @@ -0,0 +1,55 @@ +--- mysql-test/t/innodb_lock_wait_timeout_basic.test.orig 2008-08-04 09:28:16.000000000 +0300 ++++ mysql-test/t/innodb_lock_wait_timeout_basic.test 2008-10-07 11:14:15.000000000 +0300 +@@ -37,10 +37,6 @@ + # Check if Value can set # + #################################################################### + +---error ER_INCORRECT_GLOBAL_LOCAL_VAR +-SET @@GLOBAL.innodb_lock_wait_timeout=1; +---echo Expected error 'Read only variable' +- + SELECT COUNT(@@GLOBAL.innodb_lock_wait_timeout); + --echo 1 Expected + +@@ -84,13 +80,9 @@ + SELECT COUNT(@@innodb_lock_wait_timeout); + --echo 1 Expected + +---Error ER_INCORRECT_GLOBAL_LOCAL_VAR + SELECT COUNT(@@local.innodb_lock_wait_timeout); +---echo Expected error 'Variable is a GLOBAL variable' + +---Error ER_INCORRECT_GLOBAL_LOCAL_VAR + SELECT COUNT(@@SESSION.innodb_lock_wait_timeout); +---echo Expected error 'Variable is a GLOBAL variable' + + SELECT COUNT(@@GLOBAL.innodb_lock_wait_timeout); + --echo 1 Expected +--- mysql-test/r/innodb_lock_wait_timeout_basic.result.orig 2008-08-04 09:27:50.000000000 +0300 ++++ mysql-test/r/innodb_lock_wait_timeout_basic.result 2008-10-07 11:15:14.000000000 +0300 +@@ -4,9 +4,6 @@ + 1 + 1 Expected + '#---------------------BS_STVARS_032_02----------------------#' +-SET @@GLOBAL.innodb_lock_wait_timeout=1; +-ERROR HY000: Variable 'innodb_lock_wait_timeout' is a read only variable +-Expected error 'Read only variable' + SELECT COUNT(@@GLOBAL.innodb_lock_wait_timeout); + COUNT(@@GLOBAL.innodb_lock_wait_timeout) + 1 +@@ -39,11 +36,11 @@ + 1 + 1 Expected + SELECT COUNT(@@local.innodb_lock_wait_timeout); +-ERROR HY000: Variable 'innodb_lock_wait_timeout' is a GLOBAL variable +-Expected error 'Variable is a GLOBAL variable' ++COUNT(@@local.innodb_lock_wait_timeout) ++1 + SELECT COUNT(@@SESSION.innodb_lock_wait_timeout); +-ERROR HY000: Variable 'innodb_lock_wait_timeout' is a GLOBAL variable +-Expected error 'Variable is a GLOBAL variable' ++COUNT(@@SESSION.innodb_lock_wait_timeout) ++1 + SELECT COUNT(@@GLOBAL.innodb_lock_wait_timeout); + COUNT(@@GLOBAL.innodb_lock_wait_timeout) + 1