summaryrefslogtreecommitdiff
path: root/mysql-test/main/truncate_notembedded.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/truncate_notembedded.test')
-rw-r--r--mysql-test/main/truncate_notembedded.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/main/truncate_notembedded.test b/mysql-test/main/truncate_notembedded.test
index 7e186c8f7d5..c1fab2d3609 100644
--- a/mysql-test/main/truncate_notembedded.test
+++ b/mysql-test/main/truncate_notembedded.test
@@ -9,7 +9,7 @@ CREATE TABLE t1 (a INT) ENGINE=MyISAM;
LOCK TABLE t1 READ;
--connect (con1,localhost,root,,test)
-SET SESSION max_session_mem_used= 65536;
+SET SESSION max_session_mem_used= 45500;
--send
LOCK TABLE t1 WRITE;
@@ -19,7 +19,10 @@ UNLOCK TABLES;
--connection con1
--reap
---error ER_OPTION_PREVENTS_STATEMENT
+# This may work or fail as different servers uses different amount of
+# memory and the statement may work or not. What is important is that we
+# don't get a crash here!
+--error 0,ER_OPTION_PREVENTS_STATEMENT
TRUNCATE TABLE t1;
--disconnect con1