|
|
|
@ -1787,6 +1787,78 @@ CREATE TABLE `t1` ( |
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
|
|
|
|
drop table t1; |
|
|
|
# |
|
|
|
# BUG#13926: --order-by-primary fails if PKEY contains quote character |
|
|
|
# |
|
|
|
DROP TABLE IF EXISTS `t1`; |
|
|
|
CREATE TABLE `t1` ( |
|
|
|
`a b` INT, |
|
|
|
`c"d` INT, |
|
|
|
`e``f` INT, |
|
|
|
PRIMARY KEY (`a b`, `c"d`, `e``f`) |
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|
|
|
insert into t1 values (0815, 4711, 2006); |
|
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
|
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; |
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
DROP TABLE IF EXISTS "t1"; |
|
|
|
CREATE TABLE "t1" ( |
|
|
|
"a b" int(11) NOT NULL DEFAULT '0', |
|
|
|
"c""d" int(11) NOT NULL DEFAULT '0', |
|
|
|
"e`f" int(11) NOT NULL DEFAULT '0', |
|
|
|
PRIMARY KEY ("a b","c""d","e`f") |
|
|
|
); |
|
|
|
|
|
|
|
LOCK TABLES "t1" WRITE; |
|
|
|
/*!40000 ALTER TABLE "t1" DISABLE KEYS */; |
|
|
|
INSERT INTO "t1" VALUES (815,4711,2006); |
|
|
|
/*!40000 ALTER TABLE "t1" ENABLE KEYS */; |
|
|
|
UNLOCK TABLES; |
|
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
|
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
|
|
/*!40101 SET NAMES utf8 */; |
|
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
|
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
DROP TABLE IF EXISTS `t1`; |
|
|
|
CREATE TABLE `t1` ( |
|
|
|
`a b` int(11) NOT NULL DEFAULT '0', |
|
|
|
`c"d` int(11) NOT NULL DEFAULT '0', |
|
|
|
`e``f` int(11) NOT NULL DEFAULT '0', |
|
|
|
PRIMARY KEY (`a b`,`c"d`,`e``f`) |
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|
|
|
|
|
|
|
LOCK TABLES `t1` WRITE; |
|
|
|
/*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
|
|
|
INSERT INTO `t1` VALUES (815,4711,2006); |
|
|
|
/*!40000 ALTER TABLE `t1` ENABLE KEYS */; |
|
|
|
UNLOCK TABLES; |
|
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
|
|
|
|
DROP TABLE `t1`; |
|
|
|
End of 4.1 tests |
|
|
|
# |
|
|
|
# Bug #10213 mysqldump crashes when dumping VIEWs(on MacOS X) |
|
|
|
@ -3123,78 +3195,6 @@ drop user myDB_User; |
|
|
|
drop database mysqldump_myDB; |
|
|
|
use test; |
|
|
|
# |
|
|
|
# BUG#13926: --order-by-primary fails if PKEY contains quote character |
|
|
|
# |
|
|
|
DROP TABLE IF EXISTS `t1`; |
|
|
|
CREATE TABLE `t1` ( |
|
|
|
`a b` INT, |
|
|
|
`c"d` INT, |
|
|
|
`e``f` INT, |
|
|
|
PRIMARY KEY (`a b`, `c"d`, `e``f`) |
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|
|
|
insert into t1 values (0815, 4711, 2006); |
|
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
|
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; |
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
DROP TABLE IF EXISTS "t1"; |
|
|
|
CREATE TABLE "t1" ( |
|
|
|
"a b" int(11) NOT NULL DEFAULT '0', |
|
|
|
"c""d" int(11) NOT NULL DEFAULT '0', |
|
|
|
"e`f" int(11) NOT NULL DEFAULT '0', |
|
|
|
PRIMARY KEY ("a b","c""d","e`f") |
|
|
|
); |
|
|
|
|
|
|
|
LOCK TABLES "t1" WRITE; |
|
|
|
/*!40000 ALTER TABLE "t1" DISABLE KEYS */; |
|
|
|
INSERT INTO "t1" VALUES (815,4711,2006); |
|
|
|
/*!40000 ALTER TABLE "t1" ENABLE KEYS */; |
|
|
|
UNLOCK TABLES; |
|
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
|
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
|
|
/*!40101 SET NAMES utf8 */; |
|
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
|
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
DROP TABLE IF EXISTS `t1`; |
|
|
|
CREATE TABLE `t1` ( |
|
|
|
`a b` int(11) NOT NULL DEFAULT '0', |
|
|
|
`c"d` int(11) NOT NULL DEFAULT '0', |
|
|
|
`e``f` int(11) NOT NULL DEFAULT '0', |
|
|
|
PRIMARY KEY (`a b`,`c"d`,`e``f`) |
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|
|
|
|
|
|
|
LOCK TABLES `t1` WRITE; |
|
|
|
/*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
|
|
|
INSERT INTO `t1` VALUES (815,4711,2006); |
|
|
|
/*!40000 ALTER TABLE `t1` ENABLE KEYS */; |
|
|
|
UNLOCK TABLES; |
|
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
|
|
|
|
DROP TABLE `t1`; |
|
|
|
# |
|
|
|
# Bug #19745: mysqldump --xml produces invalid xml |
|
|
|
# |
|
|
|
DROP TABLE IF EXISTS t1; |
|
|
|
|