1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Merge branch 'bb-10.3-vp-MDEV-27691' into 10.3

This commit is contained in:
Oleksandr Byelkin
2022-10-14 08:29:11 +02:00
276 changed files with 1916 additions and 172 deletions

View File

@ -44,7 +44,7 @@ DROP TEMPORARY TABLE t1;
--echo #
--echo # Testing with temporary tables
--echo #
--disable_view_protocol
CREATE OR REPLACE TABLE t1 (a int);
CREATE OR REPLACE TEMPORARY TABLE t1 (a int);
CREATE OR REPLACE TEMPORARY TABLE t1 (a int, b int);
@ -104,6 +104,7 @@ create or replace table t1 as select a from (select a from t1) as t3;
--error ER_UPDATE_TABLE_USED
create or replace table t1 as select a from t2 where t2.a in (select a from t1);
drop table t1;
--enable_view_protocol
--echo #
--echo # Testing with normal tables
@ -126,6 +127,7 @@ CREATE OR REPLACE TABLE t1 AS SELECT 1;
SHOW CREATE TABLE t1;
DROP TABLE t1;
--disable_service_connection
# Using lock tables with CREATE OR REPLACE
CREATE OR REPLACE TABLE t1 (a int);
LOCK TABLES t1 write,t2 write;
@ -207,6 +209,7 @@ drop table t1,t3,t4;
--echo # Test the meta data locks are freed properly
--echo #
--disable_view_protocol
create database mysqltest2;
drop table if exists test.t1,mysqltest2.t2;
@ -268,7 +271,7 @@ show tables;
select * from information_schema.metadata_lock_info;
create table t1 (i int);
drop table t1;
--enable_view_protocol
--echo #
--echo # Testing CREATE .. LIKE
@ -485,6 +488,7 @@ CREATE OR REPLACE TEMPORARY TABLE t2(c INT DEFAULT '');
SELECT * FROM t3;
UNLOCK TABLES;
DROP TABLE t3;
--enable_service_connection
--echo #
--echo # MDEV-29697 Assertion failure in Diagnostics_area::set_ok_status
@ -497,3 +501,8 @@ CREATE OR REPLACE TABLE t LIKE tm;
# Cleanup
DROP TABLE IF EXISTS tm, t;
--echo #
--echo # End of 10.3 tests
--echo #