mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 09:04:29 +02:00
MDEV-388 Creating a federated table with a non-existing server returns a random error code
(part 2)
This commit is contained in:
parent
ec043aced0
commit
d6315e29c8
5 changed files with 27 additions and 17 deletions
13
mysql-test/suite/federated/federated.result
Normal file
13
mysql-test/suite/federated/federated.result
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
CREATE DATABASE federated;
|
||||
CREATE DATABASE federated;
|
||||
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing';
|
||||
ERROR HY000: server name: 'non_existing' doesn't exist!
|
||||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Error 1 server name: 'non_existing' doesn't exist!
|
||||
Error 1 Can't create/write to file 'non_existing' (Errcode: 14)
|
||||
Error 1005 Can't create table 'test.t1' (errno: 1)
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
DROP DATABASE IF EXISTS federated;
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
DROP DATABASE IF EXISTS federated;
|
||||
12
mysql-test/suite/federated/federated.test
Normal file
12
mysql-test/suite/federated/federated.test
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
source include/federated.inc;
|
||||
|
||||
|
||||
#
|
||||
# MDEV-388 Creating a federated table with a non-existing server returns a random error code
|
||||
#
|
||||
--error 1
|
||||
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing';
|
||||
SHOW WARNINGS;
|
||||
|
||||
source include/federated_cleanup.inc;
|
||||
|
||||
|
|
@ -2157,13 +2157,6 @@ DROP TABLE federated.t1;
|
|||
End of 5.1 tests
|
||||
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_MASTER_CONCURRENT_INSERT;
|
||||
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_SLAVE_CONCURRENT_INSERT;
|
||||
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing';
|
||||
ERROR HY000: Can't create/write to file 'server name: 'non_existing' doesn't exist!' (Errcode: 16)
|
||||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Error 1 Can't create/write to file 'server name: 'non_existing' doesn't exist!' (Errcode: 16)
|
||||
Error 1 Can't create/write to file 'non_existing' (Errcode: 14)
|
||||
Error 1005 Can't create table 'test.t1' (errno: 1)
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
DROP DATABASE IF EXISTS federated;
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
|
|
|
|||
|
|
@ -2000,11 +2000,4 @@ SET @@GLOBAL.CONCURRENT_INSERT= @OLD_SLAVE_CONCURRENT_INSERT;
|
|||
|
||||
connection default;
|
||||
|
||||
#
|
||||
# MDEV-388 Creating a federated table with a non-existing server returns a random error code
|
||||
#
|
||||
--error 1
|
||||
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing';
|
||||
SHOW WARNINGS;
|
||||
|
||||
source include/federated_cleanup.inc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue