diff options
author | SergeyV@selena. <> | 2006-02-13 19:53:34 +0300 |
---|---|---|
committer | SergeyV@selena. <> | 2006-02-13 19:53:34 +0300 |
commit | da94b1662b394c4146e553dd13572e800772f9cf (patch) | |
tree | 78c78b02b554683ac39b323e46a8ec74d47b0d6f /mysql-test | |
parent | d19e124d98e1768ef628ec4ad81a2914933c7a8d (diff) | |
download | mariadb-git-da94b1662b394c4146e553dd13572e800772f9cf.tar.gz |
Fixes bug #15943. resets error flag for show create view command, to allow
proper processing of multiple sql statements sent as a single command.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/view.result | 10 | ||||
-rw-r--r-- | mysql-test/t/view.test | 15 |
2 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index e209e393d00..6b96bf7ca17 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -2538,3 +2538,13 @@ Warnings: Warning 1052 Column 'x' in group statement is ambiguous DROP VIEW v1; DROP TABLE t1; +drop table if exists t1; +drop view if exists v1; +create table t1 (id int); +create view v1 as select * from t1; +drop table t1; +show create view v1; +drop view v1; +// +View Create View +v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache `test`.`t1`.`id` AS `id` from `t1` diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index ed44bf3b7c0..dcd2b4de8dc 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -2380,3 +2380,18 @@ SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1 GROUP BY x; DROP VIEW v1; DROP TABLE t1; + +# +# BUG#15943: mysql_next_result hangs on invalid SHOW CREATE VIEW +# + +delimiter //; +drop table if exists t1; +drop view if exists v1; +create table t1 (id int); +create view v1 as select * from t1; +drop table t1; +show create view v1; +drop view v1; +// +delimiter ;// |