summaryrefslogtreecommitdiff
path: root/mysql-test/main
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-07-06 10:33:00 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2018-07-06 10:33:00 +0200
commit0e531581e01a493a767a233992d6c1c9b5597c8b (patch)
tree273d6e68a3a3417bcece5f70b9b4541301aa066e /mysql-test/main
parent6fae04ea7d17aab3e3ef856c9f6a2d45051b426e (diff)
downloadmariadb-git-0e531581e01a493a767a233992d6c1c9b5597c8b.tar.gz
A fix moved from sql_yacc.yy to sql_yacc_ora.yy.
Diffstat (limited to 'mysql-test/main')
-rw-r--r--mysql-test/main/set_statement.result7
-rw-r--r--mysql-test/main/set_statement.test7
2 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/main/set_statement.result b/mysql-test/main/set_statement.result
index c34e1171899..a12954927b6 100644
--- a/mysql-test/main/set_statement.result
+++ b/mysql-test/main/set_statement.result
@@ -1225,3 +1225,10 @@ set @rnd=1;
select @rnd;
@rnd
0
+create table t (a int);
+SET sql_mode=ORACLE;
+SET STATEMENT myisam_sort_buffer_size=800000 FOR OPTIMIZE TABLE t;
+Table Op Msg_type Msg_text
+test.t optimize status Table is already up to date
+SET sql_mode=default;
+drop table t;
diff --git a/mysql-test/main/set_statement.test b/mysql-test/main/set_statement.test
index cc361553cfd..e2a3288106b 100644
--- a/mysql-test/main/set_statement.test
+++ b/mysql-test/main/set_statement.test
@@ -1130,3 +1130,10 @@ while ($1)
--enable_query_log
--echo # @rnd should be 0
select @rnd;
+
+create table t (a int);
+SET sql_mode=ORACLE;
+SET STATEMENT myisam_sort_buffer_size=800000 FOR OPTIMIZE TABLE t;
+SET sql_mode=default;
+drop table t;
+