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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
173ea364
Commit
173ea364
authored
Mar 19, 2009
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
8c7789c3
322fe741
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
client/mysqldump.c
client/mysqldump.c
+2
-1
mysql-test/r/federated.result
mysql-test/r/federated.result
+20
-0
mysql-test/t/federated.test
mysql-test/t/federated.test
+22
-0
No files found.
client/mysqldump.c
View file @
173ea364
...
@@ -3576,7 +3576,8 @@ char check_if_ignore_table(const char *table_name, char *table_type)
...
@@ -3576,7 +3576,8 @@ char check_if_ignore_table(const char *table_name, char *table_type)
If these two types, we do want to skip dumping the table
If these two types, we do want to skip dumping the table
*/
*/
if
(
!
opt_no_data
&&
if
(
!
opt_no_data
&&
(
!
strcmp
(
table_type
,
"MRG_MyISAM"
)
||
!
strcmp
(
table_type
,
"MRG_ISAM"
)))
(
!
strcmp
(
table_type
,
"MRG_MyISAM"
)
||
!
strcmp
(
table_type
,
"MRG_ISAM"
)
||
!
strcmp
(
table_type
,
"FEDERATED"
)))
result
=
IGNORE_DATA
;
result
=
IGNORE_DATA
;
}
}
mysql_free_result
(
res
);
mysql_free_result
(
res
);
...
...
mysql-test/r/federated.result
View file @
173ea364
...
@@ -2094,6 +2094,26 @@ SELECT t1.a FROM t1, t1 as t2 WHERE t2.b NOT LIKE t1.b;
...
@@ -2094,6 +2094,26 @@ SELECT t1.a FROM t1, t1 as t2 WHERE t2.b NOT LIKE t1.b;
a
a
DROP TABLE t1;
DROP TABLE t1;
DROP TABLE t1;
DROP TABLE t1;
#
# BUG#21360 - mysqldump error on federated tables
#
#Switch to Connection Slave
CREATE TABLE t1(id VARCHAR(20) NOT NULL, PRIMARY KEY(id));
INSERT INTO t1 VALUES ('text1'),('text2'),('text3'),('text4');
#Switch to Connection Master
CREATE TABLE t1(id VARCHAR(20) NOT NULL, PRIMARY KEY(id)) ENGINE=FEDERATED
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
# Dump table t1 using mysqldump tool
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t1` (
`id` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED DEFAULT CHARSET=latin1 CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE t1;
#Switch to Connection Slave
DROP TABLE t1;
End of 5.0 tests
End of 5.0 tests
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_MASTER_CONCURRENT_INSERT;
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_MASTER_CONCURRENT_INSERT;
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_SLAVE_CONCURRENT_INSERT;
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_SLAVE_CONCURRENT_INSERT;
...
...
mysql-test/t/federated.test
View file @
173ea364
...
@@ -1843,6 +1843,28 @@ DROP TABLE t1;
...
@@ -1843,6 +1843,28 @@ DROP TABLE t1;
connection
master
;
connection
master
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# BUG#21360 - mysqldump error on federated tables
--
echo
#
connection
slave
;
--
echo
#Switch to Connection Slave
CREATE
TABLE
t1
(
id
VARCHAR
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
id
));
INSERT
INTO
t1
VALUES
(
'text1'
),(
'text2'
),(
'text3'
),(
'text4'
);
connection
master
;
--
echo
#Switch to Connection Master
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
CREATE
TABLE
t1
(
id
VARCHAR
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
id
))
ENGINE
=
FEDERATED
CONNECTION
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/test/t1'
;
--
echo
# Dump table t1 using mysqldump tool
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
--
exec
$MYSQL_DUMP
--
compact
test
t1
DROP
TABLE
t1
;
connection
slave
;
--
echo
#Switch to Connection Slave
DROP
TABLE
t1
;
connection
default
;
connection
default
;
--
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