mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge bb-10.2-ext into 10.3
This commit is contained in:
@ -3,6 +3,10 @@
|
||||
# Note that replication.test also does some grant testing
|
||||
#
|
||||
|
||||
# Grant tests not performed with embedded server
|
||||
-- source include/not_embedded.inc
|
||||
|
||||
|
||||
SET @@SQL_MODE = REPLACE(@@SQL_MODE, 'NO_AUTO_CREATE_USER', '');
|
||||
create database mysqltest_1;
|
||||
use mysqltest_1;
|
||||
|
@ -39,3 +39,11 @@ CREATE TABLE `x1` (
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `x1` VALUES (1,1,9223372036854775806,1,1,1000,0,0);
|
||||
DROP TABLE a1,t1,x1;
|
||||
set default_storage_engine=InnoDB;
|
||||
create sequence t1;
|
||||
LOCK TABLES t1 READ;
|
||||
SELECT * FROM t1;
|
||||
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||
1 1 9223372036854775806 1 1 1000 0 0
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
|
@ -13,3 +13,14 @@ insert into t1 values (1),(2);
|
||||
CREATE SEQUENCE x1 engine=innodb;
|
||||
--exec $MYSQL_DUMP --compact test
|
||||
DROP TABLE a1,t1,x1;
|
||||
|
||||
#
|
||||
# MDEV-12887 UT_LIST_GET_LEN(trx->lock.trx_locks) == 0 when mysqldump sequence
|
||||
#
|
||||
|
||||
set default_storage_engine=InnoDB;
|
||||
create sequence t1;
|
||||
LOCK TABLES t1 READ;
|
||||
SELECT * FROM t1;
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
|
6
mysql-test/suite/sql_sequence/rename.result
Normal file
6
mysql-test/suite/sql_sequence/rename.result
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE SEQUENCE seq1;
|
||||
RENAME TABLE seq1 TO seq2, seq3 TO seq4;
|
||||
ERROR 42S02: Table 'test.seq3' doesn't exist
|
||||
LOCK TABLE seq1 READ;
|
||||
UNLOCK TABLES;
|
||||
drop table seq1;
|
6
mysql-test/suite/sql_sequence/rename.test
Normal file
6
mysql-test/suite/sql_sequence/rename.test
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE SEQUENCE seq1;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
RENAME TABLE seq1 TO seq2, seq3 TO seq4;
|
||||
LOCK TABLE seq1 READ;
|
||||
UNLOCK TABLES;
|
||||
drop table seq1;
|
Reference in New Issue
Block a user