Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9f0f8458
Commit
9f0f8458
authored
Aug 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.0 -> 5.1 manual merge, part 5 of 5 (or more?)
parent
0901cb0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
39 deletions
+45
-39
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+41
-31
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+4
-8
No files found.
mysql-test/r/mysqldump.result
View file @
9f0f8458
...
@@ -2574,6 +2574,8 @@ DROP TABLE IF EXISTS `v2`;
...
@@ -2574,6 +2574,8 @@ DROP TABLE IF EXISTS `v2`;
`b` varchar(32),
`b` varchar(32),
`c` varchar(32)
`c` varchar(32)
) */;
) */;
USE `test`;
/*!50001 DROP TABLE IF EXISTS `v0`*/;
/*!50001 DROP TABLE IF EXISTS `v0`*/;
/*!50001 DROP VIEW IF EXISTS `v0`*/;
/*!50001 DROP VIEW IF EXISTS `v0`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50001 CREATE ALGORITHM=UNDEFINED */
...
@@ -2827,6 +2829,8 @@ DROP TABLE IF EXISTS `v1`;
...
@@ -2827,6 +2829,8 @@ DROP TABLE IF EXISTS `v1`;
/*!50001 CREATE TABLE `v1` (
/*!50001 CREATE TABLE `v1` (
`id` int(11)
`id` int(11)
) */;
) */;
USE `mysqldump_test_db`;
/*!50001 DROP TABLE IF EXISTS `v1`*/;
/*!50001 DROP TABLE IF EXISTS `v1`*/;
/*!50001 DROP VIEW IF EXISTS `v1`*/;
/*!50001 DROP VIEW IF EXISTS `v1`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50001 CREATE ALGORITHM=UNDEFINED */
...
@@ -2852,59 +2856,63 @@ create database mysqldump_views;
...
@@ -2852,59 +2856,63 @@ create database mysqldump_views;
use mysqldump_views;
use mysqldump_views;
create view nasishnasifu as select mysqldump_tables.basetable.id from mysqldump_tables.basetable;
create view nasishnasifu as select mysqldump_tables.basetable.id from mysqldump_tables.basetable;
/*!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 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mysqldump_tables`;
USE `mysqldump_tables`;
DROP TABLE IF EXISTS `basetable`;
CREATE TABLE `basetable` (
CREATE TABLE `basetable` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tag` varchar(64) DEFAULT NULL,
`tag` varchar(64) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
LOCK TABLES `basetable` WRITE;
/*!40000 ALTER TABLE `basetable` DISABLE KEYS */;
/*!40000 ALTER TABLE `basetable` ENABLE KEYS */;
UNLOCK TABLES;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mysqldump_views`;
USE `mysqldump_views`;
DROP TABLE IF EXISTS `nasishnasifu`;
/*!50001 DROP VIEW IF EXISTS `nasishnasifu`*/;
/*!50001 CREATE TABLE `nasishnasifu` (
/*!50001 CREATE TABLE `nasishnasifu` (
`id` bigint(20) unsigned
`id` bigint(20) unsigned
) */;
) */;
/*!50001 DROP TABLE IF EXISTS `nasishnasifu`*/;
/*!50001 DROP VIEW IF EXISTS `nasishnasifu`*/;
USE `mysqldump_tables`;
USE `mysqldump_views`;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `mysqldump_views`.`nasishnasifu` AS select `mysqldump_tables`.`basetable`.`id` AS `id` from `mysqldump_tables`.`basetable` */;
/*!50001 VIEW `mysqldump_views`.`nasishnasifu` AS select `mysqldump_tables`.`basetable`.`id` AS `id` from `mysqldump_tables`.`basetable` */;
/*!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 view nasishnasifu;
drop view nasishnasifu;
drop database mysqldump_views;
drop database mysqldump_views;
drop table mysqldump_tables.basetable;
drop table mysqldump_tables.basetable;
drop database mysqldump_tables;
drop database mysqldump_tables;
create database mysqldump_dba;
use mysqldump_dba;
create table t1 (f1 int, f2 int);
insert into t1 values (1,1);
create view v1 as select f1, f2 from t1;
create database mysqldump_dbb;
use mysqldump_dbb;
create table t1 (f1 int, f2 int);
insert into t1 values (2,2);
create view v1 as select f1, f2 from t1;
drop view v1;
drop table t1;
drop database mysqldump_dbb;
use mysqldump_dba;
drop view v1;
drop table t1;
drop database mysqldump_dba;
select * from mysqldump_dba.v1;
f1 f2
1 1
select * from mysqldump_dbb.v1;
f1 f2
2 2
use mysqldump_dba;
drop view v1;
drop table t1;
drop database mysqldump_dba;
use mysqldump_dbb;
drop view v1;
drop table t1;
drop database mysqldump_dbb;
use test;
use test;
End of 5.0 tests
End of 5.0 tests
create table t1 (a text , b text);
create table t1 (a text , b text);
...
@@ -3159,6 +3167,8 @@ DROP TABLE IF EXISTS `v1`;
...
@@ -3159,6 +3167,8 @@ DROP TABLE IF EXISTS `v1`;
/*!50001 CREATE TABLE `v1` (
/*!50001 CREATE TABLE `v1` (
`id` int(11)
`id` int(11)
) */;
) */;
USE `mysqldump_test_db`;
/*!50001 DROP TABLE IF EXISTS `v1`*/;
/*!50001 DROP TABLE IF EXISTS `v1`*/;
/*!50001 DROP VIEW IF EXISTS `v1`*/;
/*!50001 DROP VIEW IF EXISTS `v1`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50001 CREATE ALGORITHM=UNDEFINED */
...
...
mysql-test/t/mysqldump.test
View file @
9f0f8458
...
@@ -1225,8 +1225,9 @@ drop view v1;
...
@@ -1225,8 +1225,9 @@ drop view v1;
drop
table
t1
;
drop
table
t1
;
drop
database
mysqldump_test_db
;
drop
database
mysqldump_test_db
;
#
# Bug21014 Segmentation fault of mysqldump on view
# Bug21014 Segmentation fault of mysqldump on view
#
create
database
mysqldump_tables
;
create
database
mysqldump_tables
;
use
mysqldump_tables
;
use
mysqldump_tables
;
create
table
basetable
(
id
serial
,
tag
varchar
(
64
)
);
create
table
basetable
(
id
serial
,
tag
varchar
(
64
)
);
...
@@ -1242,8 +1243,9 @@ drop database mysqldump_views;
...
@@ -1242,8 +1243,9 @@ drop database mysqldump_views;
drop
table
mysqldump_tables
.
basetable
;
drop
table
mysqldump_tables
.
basetable
;
drop
database
mysqldump_tables
;
drop
database
mysqldump_tables
;
#
# Bug20221 Dumping of multiple databases containing view(s) yields maleformed dumps
# Bug20221 Dumping of multiple databases containing view(s) yields maleformed dumps
#
create
database
mysqldump_dba
;
create
database
mysqldump_dba
;
use
mysqldump_dba
;
use
mysqldump_dba
;
create
table
t1
(
f1
int
,
f2
int
);
create
table
t1
(
f1
int
,
f2
int
);
...
@@ -1279,12 +1281,6 @@ use mysqldump_dbb;
...
@@ -1279,12 +1281,6 @@ use mysqldump_dbb;
drop
view
v1
;
drop
view
v1
;
drop
table
t1
;
drop
table
t1
;
drop
database
mysqldump_dbb
;
drop
database
mysqldump_dbb
;
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
databases
mysqldump_tables
mysqldump_views
;
drop
view
nasishnasifu
;
drop
database
mysqldump_views
;
drop
table
mysqldump_tables
.
basetable
;
drop
database
mysqldump_tables
;
use
test
;
use
test
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment