mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #15930494 MYSQLDUMP TEST SOMETIMES FAILS DUE TO MIXING STDOUT AND
STDERR Fix: Added a destination file to mysqldump.
This commit is contained in:
@ -5115,15 +5115,12 @@ INSERT INTO b12809202_db.t2 VALUES (1), (2), (3);
|
||||
# Note : In the following dump the transaction
|
||||
# should start only after the logs are
|
||||
# flushed, as 'flush logs' causes implicit
|
||||
# commit starting 5.5.
|
||||
# commit starting 5.5.Also, as stderr is
|
||||
# unbuffered, it is redirected to a different
|
||||
# file to avoid diffs due to bad stdout/stderr
|
||||
# order in the output.
|
||||
|
||||
#### Dump starts here ####
|
||||
-- Connecting to localhost...
|
||||
-- main : logs flushed successfully!
|
||||
-- Starting transaction...
|
||||
-- Retrieving table structure for table t1...
|
||||
-- Sending SELECT query...
|
||||
-- Retrieving rows...
|
||||
--
|
||||
-- Host: localhost Database: b12809202_db
|
||||
-- ------------------------------------------------------
|
||||
@ -5158,9 +5155,6 @@ CREATE TABLE `t1` (
|
||||
LOCK TABLES `t1` WRITE;
|
||||
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
|
||||
INSERT INTO `t1` VALUES (1),(2),(3);
|
||||
-- Retrieving table structure for table t2...
|
||||
-- Sending SELECT query...
|
||||
-- Retrieving rows...
|
||||
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@ -5185,7 +5179,6 @@ LOCK TABLES `t2` WRITE;
|
||||
INSERT INTO `t2` VALUES (1),(2),(3);
|
||||
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
-- Disconnecting from localhost...
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
@ -5197,6 +5190,18 @@ UNLOCK TABLES;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed
|
||||
## stderr ##
|
||||
-- Connecting to localhost...
|
||||
-- main : logs flushed successfully!
|
||||
-- Starting transaction...
|
||||
-- Retrieving table structure for table t1...
|
||||
-- Sending SELECT query...
|
||||
-- Retrieving rows...
|
||||
-- Retrieving table structure for table t2...
|
||||
-- Sending SELECT query...
|
||||
-- Retrieving rows...
|
||||
-- Disconnecting from localhost...
|
||||
|
||||
#### Dump ends here ####
|
||||
DROP TABLE b12809202_db.t1;
|
||||
DROP TABLE b12809202_db.t2;
|
||||
|
Reference in New Issue
Block a user