summaryrefslogtreecommitdiff
path: root/mysql-test/t/comments.test
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-12-28 03:56:38 +0200
committermonty@donna.mysql.com <>2000-12-28 03:56:38 +0200
commitc0f40d14cc36f56f5b4dba288583acd345429e4e (patch)
treec27e400395741740f2e230395445236b38db27c1 /mysql-test/t/comments.test
parent361067e9150f7fa57d5b2ac722ed55df9c14cc53 (diff)
downloadmariadb-git-c0f40d14cc36f56f5b4dba288583acd345429e4e.tar.gz
Added support for hex strings to mysqlimport
A lot of new tests to mysqltest Fixed bug with BDB tables and autocommit
Diffstat (limited to 'mysql-test/t/comments.test')
-rw-r--r--mysql-test/t/comments.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/comments.test b/mysql-test/t/comments.test
new file mode 100644
index 00000000000..a85419c0295
--- /dev/null
+++ b/mysql-test/t/comments.test
@@ -0,0 +1,17 @@
+#
+# Testing of comments
+#
+
+select 1+2/*hello*/+3;
+select 1 /* long
+multi line comment */;
+!$1065 /* empty query */;
+select 1 /*!32301 +1 */;
+select 1 /*!52301 +1 */;
+select 1--1;
+# Note that the following returns 4 while it should return 2
+# This is because the mysqld server doesn't parse -- comments
+select 1 --2
++1;
+select 1 # The rest of the row will be ignored
+;