mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@@ -338,9 +338,9 @@ CREATE TABLE t1 (g GEOMETRY NOT NULL, SPATIAL gi(g));
|
||||
INSERT INTO t1 VALUES (POINT(0,0));
|
||||
HANDLER t1 OPEN AS h;
|
||||
HANDLER h READ `gi`= (10);
|
||||
ERROR HY000: SPATIAL index `gi` does not support this operation
|
||||
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
|
||||
HANDLER h READ `gi`> (10);
|
||||
ERROR HY000: SPATIAL index `gi` does not support this operation
|
||||
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
|
||||
HANDLER h CLOSE;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (w VARCHAR(100), FULLTEXT fk(w));
|
||||
@@ -352,3 +352,12 @@ HANDLER h READ `fk`> (10);
|
||||
ERROR HY000: FULLTEXT index `fk` does not support this operation
|
||||
HANDLER h CLOSE;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-35082 HANDLER with FULLTEXT keys is not always rejected
|
||||
#
|
||||
create table t (a int primary key, v text not null, fulltext(v));
|
||||
handler t open;
|
||||
handler t read v next;
|
||||
ERROR HY000: FULLTEXT index `v` does not support this operation
|
||||
drop table t;
|
||||
# End of 10.5 tests
|
||||
|
@@ -385,9 +385,9 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 (g GEOMETRY NOT NULL, SPATIAL gi(g));
|
||||
INSERT INTO t1 VALUES (POINT(0,0));
|
||||
HANDLER t1 OPEN AS h;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
HANDLER h READ `gi`= (10);
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
HANDLER h READ `gi`> (10);
|
||||
HANDLER h CLOSE;
|
||||
DROP TABLE t1;
|
||||
@@ -401,3 +401,14 @@ HANDLER h READ `fk`= (10);
|
||||
HANDLER h READ `fk`> (10);
|
||||
HANDLER h CLOSE;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-35082 HANDLER with FULLTEXT keys is not always rejected
|
||||
--echo #
|
||||
create table t (a int primary key, v text not null, fulltext(v));
|
||||
handler t open;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
handler t read v next;
|
||||
drop table t;
|
||||
|
||||
--echo # End of 10.5 tests
|
||||
|
@@ -1188,9 +1188,9 @@ DROP TABLE t;
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
HANDLER t READ a NEXT;
|
||||
a
|
||||
ERROR HY000: FULLTEXT index `a` does not support this operation
|
||||
HANDLER t READ a PREV;
|
||||
a
|
||||
ERROR HY000: FULLTEXT index `a` does not support this operation
|
||||
DROP TABLE t;
|
||||
CREATE TABLE `%`(a TEXT, FULLTEXT INDEX(a)) ENGINE=INNODB;
|
||||
CREATE TABLE `A B`(a TEXT, FULLTEXT INDEX(a)) ENGINE=INNODB;
|
||||
|
@@ -1183,9 +1183,9 @@ DROP TABLE t;
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
HANDLER t READ a NEXT;
|
||||
a
|
||||
ERROR HY000: FULLTEXT index `a` does not support this operation
|
||||
HANDLER t READ a PREV;
|
||||
a
|
||||
ERROR HY000: FULLTEXT index `a` does not support this operation
|
||||
DROP TABLE t;
|
||||
CREATE TABLE `%`(a TEXT, FULLTEXT INDEX(a)) ENGINE=INNODB;
|
||||
CREATE TABLE `A B`(a TEXT, FULLTEXT INDEX(a)) ENGINE=INNODB;
|
||||
|
@@ -1155,7 +1155,9 @@ DROP TABLE t;
|
||||
# InnoDB FTS does not support index scan from handler
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a NEXT;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a PREV;
|
||||
DROP TABLE t;
|
||||
|
||||
|
@@ -1148,7 +1148,9 @@ DROP TABLE t;
|
||||
# InnoDB FTS does not support index scan from handler
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a NEXT;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a PREV;
|
||||
DROP TABLE t;
|
||||
|
||||
|
8
mysql-test/suite/plugins/r/fulltext_notembedded.result
Normal file
8
mysql-test/suite/plugins/r/fulltext_notembedded.result
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# MDEV-35050 Found wrong usage of mutex upon setting plugin session variables
|
||||
#
|
||||
install soname 'mypluglib';
|
||||
set session_track_system_variables="*";
|
||||
set session simple_parser_simple_thdvar_one = 10;
|
||||
uninstall soname 'mypluglib';
|
||||
# End of 10.5 tests
|
@@ -8,11 +8,3 @@ DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
||||
show status like 'a%status';
|
||||
Variable_name Value
|
||||
#
|
||||
# MDEV-35050 Found wrong usage of mutex upon setting plugin session variables
|
||||
#
|
||||
install soname 'mypluglib';
|
||||
set session_track_system_variables="*";
|
||||
set session simple_parser_simple_thdvar_one = 10;
|
||||
uninstall soname 'mypluglib';
|
||||
# End of 10.5 tests
|
||||
|
12
mysql-test/suite/plugins/t/fulltext_notembedded.test
Normal file
12
mysql-test/suite/plugins/t/fulltext_notembedded.test
Normal file
@@ -0,0 +1,12 @@
|
||||
--source include/have_simple_parser.inc
|
||||
--source include/not_embedded.inc
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-35050 Found wrong usage of mutex upon setting plugin session variables
|
||||
--echo #
|
||||
install soname 'mypluglib';
|
||||
set session_track_system_variables="*";
|
||||
set session simple_parser_simple_thdvar_one = 10;
|
||||
uninstall soname 'mypluglib';
|
||||
|
||||
--echo # End of 10.5 tests
|
@@ -1,4 +1,3 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_simple_parser.inc
|
||||
|
||||
--echo #
|
||||
@@ -15,13 +14,3 @@ UNINSTALL PLUGIN simple_parser;
|
||||
# Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
|
||||
#
|
||||
show status like 'a%status';
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-35050 Found wrong usage of mutex upon setting plugin session variables
|
||||
--echo #
|
||||
install soname 'mypluglib';
|
||||
set session_track_system_variables="*";
|
||||
set session simple_parser_simple_thdvar_one = 10;
|
||||
uninstall soname 'mypluglib';
|
||||
|
||||
--echo # End of 10.5 tests
|
||||
|
@@ -221,3 +221,14 @@ ERROR HY000: The target table v1 of the DELETE is not updatable
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# MDEV-33470 Unique hash index is broken on DML for system-versioned table
|
||||
#
|
||||
create or replace table t (
|
||||
c int, unique (c) using hash)
|
||||
with system versioning;
|
||||
insert into t values (0);
|
||||
delete from t;
|
||||
delete history from t;
|
||||
drop table t;
|
||||
# End of 10.5 tests
|
||||
|
@@ -49,4 +49,28 @@ x y
|
||||
1 1
|
||||
connection master;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-31297 Create table as select on system versioned tables do not work consistently on replication
|
||||
#
|
||||
connection master;
|
||||
create table t engine=innodb with system versioning as select 1 as i;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`i` int(1) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
||||
select * from t;
|
||||
i
|
||||
1
|
||||
connection slave;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`i` int(1) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
||||
select * from t;
|
||||
i
|
||||
1
|
||||
connection master;
|
||||
drop table t;
|
||||
include/rpl_end.inc
|
||||
|
@@ -227,4 +227,17 @@ DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.4 tests
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-33470 Unique hash index is broken on DML for system-versioned table
|
||||
--echo #
|
||||
create or replace table t (
|
||||
c int, unique (c) using hash)
|
||||
with system versioning;
|
||||
insert into t values (0);
|
||||
delete from t;
|
||||
delete history from t;
|
||||
drop table t;
|
||||
|
||||
--echo # End of 10.5 tests
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
|
@@ -56,4 +56,19 @@ drop table t1;
|
||||
--remove_files_wildcard $TMP *.txt
|
||||
--remove_files_wildcard $TMP *.sql
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-31297 Create table as select on system versioned tables do not work consistently on replication
|
||||
--echo #
|
||||
--connection master
|
||||
create table t engine=innodb with system versioning as select 1 as i;
|
||||
show create table t;
|
||||
select * from t;
|
||||
|
||||
--sync_slave_with_master
|
||||
show create table t;
|
||||
select * from t;
|
||||
|
||||
--connection master
|
||||
drop table t;
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user