summaryrefslogtreecommitdiff
path: root/mysql-test/t/view.test
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@host.loc>2008-03-27 00:51:29 +0400
committerunknown <gshchepa/uchum@host.loc>2008-03-27 00:51:29 +0400
commit9179e20a3424ba3ee1d036d6da3970f98d018619 (patch)
treef71ad97f94a2e4cabd939b64532d9124f40d753b /mysql-test/t/view.test
parent3ca4bb96a41eb24be4aa5ca497e916b3c16de713 (diff)
parentc3f2e30320f31d654fecb0bf2eabf66e64685b89 (diff)
downloadmariadb-git-9179e20a3424ba3ee1d036d6da3970f98d018619.tar.gz
Merge host.loc:/home/uchum/work/5.0-opt
into host.loc:/home/uchum/work/5.1-opt mysql-test/r/view.result: Merge with 5.0-opt (bug#35193). mysql-test/t/view.test: Merge with 5.0-opt (bug#35193). sql/sql_select.cc: Merge with 5.0-opt (bug#35193).
Diffstat (limited to 'mysql-test/t/view.test')
-rw-r--r--mysql-test/t/view.test23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test
index 43f7d4a6f68..7db1a693a93 100644
--- a/mysql-test/t/view.test
+++ b/mysql-test/t/view.test
@@ -3534,6 +3534,29 @@ DROP TABLE t1;
###########################################################################
--echo # -----------------------------------------------------------------
+--echo # -- Bug#35193: VIEW query is rewritten without "FROM DUAL",
+--echo # -- causing syntax error
+--echo # -----------------------------------------------------------------
+--echo
+
+CREATE VIEW v1 AS SELECT 1 FROM DUAL WHERE 1;
+
+--echo
+
+SELECT * FROM v1;
+SHOW CREATE TABLE v1;
+
+--echo
+
+DROP VIEW v1;
+
+--echo
+--echo # -- End of test case for Bug#35193.
+--echo
+
+###########################################################################
+
+--echo # -----------------------------------------------------------------
--echo # -- End of 5.0 tests.
--echo # -----------------------------------------------------------------