mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
Merge branch '10.0' into 10.1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
if (!`SELECT count(*) FROM information_schema.plugins WHERE
|
||||
plugin_name = 'federated' AND plugin_status = 'active' AND
|
||||
plugin_description LIKE '%FederatedX%'`){
|
||||
plugin_description LIKE '%transactions%'`){
|
||||
skip Need FederatedX engine;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ SELECT * FROM information_schema.engines
|
||||
WHERE ENGINE = 'ARCHIVE';
|
||||
ENGINE ARCHIVE
|
||||
SUPPORT YES
|
||||
COMMENT Archive storage engine
|
||||
COMMENT gzip-compresses tables for a low storage footprint
|
||||
TRANSACTIONS NO
|
||||
XA NO
|
||||
SAVEPOINTS NO
|
||||
|
||||
@@ -2,7 +2,7 @@ SELECT * FROM information_schema.engines
|
||||
WHERE ENGINE = 'CSV';
|
||||
ENGINE CSV
|
||||
SUPPORT YES
|
||||
COMMENT CSV storage engine
|
||||
COMMENT Stores tables as CSV files
|
||||
TRANSACTIONS NO
|
||||
XA NO
|
||||
SAVEPOINTS NO
|
||||
|
||||
@@ -2,7 +2,7 @@ SELECT * FROM information_schema.engines
|
||||
WHERE ENGINE = 'FEDERATED';
|
||||
ENGINE FEDERATED
|
||||
SUPPORT YES
|
||||
COMMENT FederatedX pluggable storage engine
|
||||
COMMENT Allows to access tables on other MariaDB servers, supports transactions and more
|
||||
TRANSACTIONS YES
|
||||
XA NO
|
||||
SAVEPOINTS YES
|
||||
|
||||
@@ -2,7 +2,7 @@ SELECT * FROM information_schema.engines
|
||||
WHERE ENGINE = 'MyISAM';
|
||||
ENGINE MyISAM
|
||||
SUPPORT DEFAULT
|
||||
COMMENT MyISAM storage engine
|
||||
COMMENT Non-transactional engine with good performance and small data footprint
|
||||
TRANSACTIONS NO
|
||||
XA NO
|
||||
SAVEPOINTS NO
|
||||
|
||||
@@ -377,7 +377,9 @@ send optimize table t1;
|
||||
# client 1
|
||||
--echo proceed with the normal connection
|
||||
connection default;
|
||||
--disable_ps_protocol
|
||||
handler t1 read next;
|
||||
--enable_ps_protocol
|
||||
handler t1 close;
|
||||
# client 2
|
||||
--echo read the result from the other connection
|
||||
|
||||
@@ -269,7 +269,7 @@ handler t1 open;
|
||||
lock table t1 write;
|
||||
alter table t1 engine=csv;
|
||||
handler t1 read a next;
|
||||
ERROR HY000: Storage engine CSV of the table `test`.`t1` doesn't have this option
|
||||
Got one of the listed errors
|
||||
handler t1 close;
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
|
||||
@@ -326,7 +326,7 @@ let $wait_condition=
|
||||
info = "alter table t1 engine=csv";
|
||||
--source include/wait_condition.inc
|
||||
connection default;
|
||||
--error ER_ILLEGAL_HA
|
||||
--error ER_ILLEGAL_HA,ER_KEY_DOES_NOT_EXITS
|
||||
handler t1 read a next;
|
||||
handler t1 close;
|
||||
connection con1;
|
||||
|
||||
9
mysql-test/suite/handler/ps.result
Normal file
9
mysql-test/suite/handler/ps.result
Normal file
@@ -0,0 +1,9 @@
|
||||
create table t1 (i int);
|
||||
handler test.t1 open handler_a;
|
||||
flush status;
|
||||
handler handler_a read first;
|
||||
i
|
||||
show status like 'Com_stmt_prepare%';
|
||||
Variable_name Value
|
||||
Com_stmt_prepare OK
|
||||
drop table t1;
|
||||
11
mysql-test/suite/handler/ps.test
Normal file
11
mysql-test/suite/handler/ps.test
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# MDEV-15729 Server crashes in Field::make_field upon HANDLER READ executed with PS protocol
|
||||
#
|
||||
create table t1 (i int);
|
||||
handler test.t1 open handler_a;
|
||||
flush status;
|
||||
handler handler_a read first;
|
||||
# handler...read must be prepared in --ps-protocol mode
|
||||
--replace_result $PS_PROTOCOL OK
|
||||
show status like 'Com_stmt_prepare%';
|
||||
drop table t1;
|
||||
5
mysql-test/suite/innodb/r/rename_table.result
Normal file
5
mysql-test/suite/innodb/r/rename_table.result
Normal file
@@ -0,0 +1,5 @@
|
||||
call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
RENAME TABLE t1 TO non_existing_db.t1;
|
||||
ERROR HY000: Error on rename of './test/t1' to './non_existing_db/t1' (errno: -1 "Internal error < 0 (Not system error)")
|
||||
DROP TABLE t1;
|
||||
@@ -9,9 +9,10 @@
|
||||
|
||||
|
||||
# Ignore OS errors
|
||||
call mtr.add_suppression("InnoDB: File ./test/t1*");
|
||||
call mtr.add_suppression("InnoDB: Error number*");
|
||||
call mtr.add_suppression("InnoDB: File ./test/t1#p#p1#sp#p1sp0.ibd: 'rename' returned OS error*");
|
||||
call mtr.add_suppression("InnoDB: File ./test/t1");
|
||||
call mtr.add_suppression("InnoDB: Error number");
|
||||
call mtr.add_suppression("InnoDB: Cannot rename file '.*/test/t1#[Pp]#p1#[Ss][Pp]#p1sp0\\.ibd' to");
|
||||
call mtr.add_suppression("InnoDB: Operating system error number .* in a file operation.");
|
||||
|
||||
# MDEV-7046: MySQL#74480 - Failing assertion: os_file_status(newpath, &exists, &type)
|
||||
# after Operating system error number 36 in a file operation
|
||||
|
||||
11
mysql-test/suite/innodb/t/rename_table.test
Normal file
11
mysql-test/suite/innodb/t/rename_table.test
Normal file
@@ -0,0 +1,11 @@
|
||||
--source include/have_innodb.inc
|
||||
|
||||
call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");
|
||||
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
--replace_result "\\" "/"
|
||||
--error ER_ERROR_ON_RENAME
|
||||
RENAME TABLE t1 TO non_existing_db.t1;
|
||||
|
||||
# Cleanup
|
||||
DROP TABLE t1;
|
||||
@@ -40,7 +40,7 @@ sub start_test {
|
||||
return "Not run for embedded server" if $::opt_embedded_server;
|
||||
return "Not configured to run ctest" unless -f "../CTestTestfile.cmake";
|
||||
my ($ctest_vs)= $opt_vs_config ? "--build-config $opt_vs_config" : "";
|
||||
my (@ctest_list)= `cd .. && ctest $opt_vs_config --show-only --verbose`;
|
||||
my (@ctest_list)= `cd .. && ctest $opt_vs_config -E MTR -C default_ignore --show-only --verbose`;
|
||||
return "No ctest" if $?;
|
||||
|
||||
my ($command, %tests);
|
||||
|
||||
Reference in New Issue
Block a user