summaryrefslogtreecommitdiff
path: root/mysql-test/main/sp.test
diff options
context:
space:
mode:
authorLena Startseva <lena.startseva@mariadb.com>2022-09-27 13:17:59 +0700
committerLena Startseva <lena.startseva@mariadb.com>2022-09-27 13:17:59 +0700
commitf8f25b472e99569c88820787e293801208768b41 (patch)
tree5706936ec41f10a3ed3b4ed807b8e7b994ad4bdd /mysql-test/main/sp.test
parent789f55c947a8aa224e5b0a71d5c0bea375320091 (diff)
parent2abf499c76a5b872e8dbf84aaa20e1990ed6407e (diff)
downloadmariadb-git-f8f25b472e99569c88820787e293801208768b41.tar.gz
Merge branch 'bb-10.5-all-builders' into bb-10.6-all-builders
Diffstat (limited to 'mysql-test/main/sp.test')
-rw-r--r--mysql-test/main/sp.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/main/sp.test b/mysql-test/main/sp.test
index fd076ee9efe..7cd68179c04 100644
--- a/mysql-test/main/sp.test
+++ b/mysql-test/main/sp.test
@@ -1306,6 +1306,8 @@ create function f1() returns int
return (select sum(data) from t1)|
# Let us also test some weird cases where no real tables is used
+# enable after fix MDEV-28535
+--disable_view_protocol
create function f0() returns int
return (select * from (select 100) as r)|
select f0()|
@@ -1313,10 +1315,13 @@ select *, f0() from (select 1) as t|
create view v0 as select f0()|
select * from v0|
select *, f0() from v0|
+--enable_view_protocol
#
# Let us test how well prelocking works with explicit LOCK TABLES.
#
+#use disable/enable_service_connection after fix MDEV-28535
+--disable_service_connection
lock tables t1 read, t1 as t11 read|
# These should work well
select f3()|
@@ -1333,9 +1338,11 @@ select id, f3() from t1|
--error ER_TABLE_NOT_LOCKED
select f4()|
unlock tables|
+--enable_service_connection
# Let us test how LOCK TABLES which implicitly depends on functions
# works
+--disable_service_connection
lock tables v2 read, mysql.proc read|
select * from v2|
select * from v1|
@@ -1345,6 +1352,7 @@ select * from v1, t1|
--error ER_TABLE_NOT_LOCKED
select f4()|
unlock tables|
+--enable_service_connection
# Tests for handling of temporary tables in functions.
#
@@ -1368,6 +1376,7 @@ select f9()|
select f9() from t1 limit 1|
# Function which uses both temporary and permanent tables.
+--disable_view_protocol
create function f10() returns int
begin
drop temporary table if exists t3;
@@ -1380,6 +1389,7 @@ end|
select f10()|
create table t4 as select 1 as id|
select f10()|
+--enable_view_protocol
create function f11() returns int
begin
@@ -5998,6 +6008,7 @@ SHOW CREATE FUNCTION bug16211_f2|
SHOW CREATE FUNCTION mysqltest2.bug16211_f3|
SHOW CREATE FUNCTION mysqltest2.bug16211_f4|
+--disable_service_connection
SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
@@ -6013,6 +6024,7 @@ WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
+--enable_service_connection
SELECT CHARSET(bug16211_f1())|
SELECT CHARSET(bug16211_f2())|