summaryrefslogtreecommitdiff
path: root/mysql-test/t/keywords.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/keywords.test')
-rw-r--r--mysql-test/t/keywords.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/keywords.test b/mysql-test/t/keywords.test
new file mode 100644
index 00000000000..b9a1f34c715
--- /dev/null
+++ b/mysql-test/t/keywords.test
@@ -0,0 +1,10 @@
+#
+# Test keywords as fields
+#
+
+drop table if exists t1;
+create table t1 (time time, date date, timestamp timestamp);
+insert into t1 values ("12:22:22","97:02:03","1997-01-02");
+select * from t1;
+select t1.time+0,t1.date+0,t1.timestamp+0,concat(date," ",time) from t1;
+drop table t1;