summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp.test
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-09-12 23:41:35 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-09-12 23:41:35 +0500
commit2978fcc3e9e96d8e0adfd1310873cb9ef3410b19 (patch)
treec9321a5bd3d73e5b36055c05bf1fc622cc5ecbe1 /mysql-test/t/sp.test
parent5c836d24f64eb99aba3cb94da3ee90bcca209500 (diff)
parentba39449e01c88f84a3a1b0cbc55fadb77ef20e82 (diff)
downloadmariadb-git-2978fcc3e9e96d8e0adfd1310873cb9ef3410b19.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0
into gleb.loc:/home/uchum/work/bk/5.0-opt sql/sql_yacc.yy: Auto merged mysql-test/r/sp.result: SCCS merged mysql-test/t/sp.test: SCCS merged
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r--mysql-test/t/sp.test33
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test
index 8dd99c2b2f1..9e0ca965b95 100644
--- a/mysql-test/t/sp.test
+++ b/mysql-test/t/sp.test
@@ -7301,6 +7301,39 @@ SET NAMES default;
DROP PROCEDURE p1;
#
+# Bug#29408 Cannot find view in columns table if the selection contains a function
+#
+delimiter |;
+
+create function f1()
+ returns int(11)
+not deterministic
+contains sql
+sql security definer
+comment ''
+begin
+ declare x int(11);
+ set x=-1;
+ return x;
+end|
+
+delimiter ;|
+
+create view v1 as select 1 as one, f1() as days;
+
+connect (bug29408, localhost, root,,*NO-ONE*);
+connection bug29408;
+
+show create view test.v1;
+select column_name from information_schema.columns
+where table_name='v1' and table_schema='test';
+
+connection default;
+disconnect bug29408;
+drop view v1;
+drop function f1;
+
+#
# Bug#13675: DATETIME/DATE type in store proc param seems to be converted as
# varbinary
#