summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysql.test
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-08-29 18:14:14 +0300
committerMichael Widenius <monty@askmonty.org>2011-08-29 18:14:14 +0300
commit282c303746d0653a927b0fcd16ecdc9b690bbb00 (patch)
treeff29dcc08cec23bda0dc004a6ea388f9571c1995 /mysql-test/t/mysql.test
parent2df1914791030714196c3d829187891a97be54dc (diff)
downloadmariadb-git-282c303746d0653a927b0fcd16ecdc9b690bbb00.tar.gz
Added MariaDB executable comment syntax: /*M!##### */
client/mysql.cc: Don't remove MariaDB executable comments. mysql-test/r/comments.result: Test MariaDB executable comments. mysql-test/r/mysql.result: Test MariaDB executable comments. mysql-test/t/comments.test: Test MariaDB executable comments. mysql-test/t/mysql.test: Test MariaDB executable comments. sql/sql_cache.cc: Don't delete MariaDB executable comments. sql/sql_lex.cc: Handle MariaDB executable comments
Diffstat (limited to 'mysql-test/t/mysql.test')
-rw-r--r--mysql-test/t/mysql.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test
index d1ae90be864..4efd7c7636d 100644
--- a/mysql-test/t/mysql.test
+++ b/mysql-test/t/mysql.test
@@ -124,6 +124,13 @@ drop table t1;
--exec echo "use" > $file
--exec $MYSQL < $file 2>&1
+# Test exceutable comments
+--exec echo "SELECT 1 /*! +1 */;" > $file
+--exec echo "SELECT 1 /*M! +1 */;" >> $file
+--exec echo "SELECT 1 /*!00000 +1 */;" >> $file
+--exec echo "SELECT 1 /*M!00000 +1 */" >> $file
+--exec $MYSQL < $file 2>&1
+
--remove_file $file
#