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
c378d3a1
Commit
c378d3a1
authored
Nov 01, 2006
by
bar@mysql.com/bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl
into mysql.com:/usr/home/bar/mysql-5.0.b22877
parents
d18fcb3a
ac9e3db9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
2 deletions
+58
-2
BitKeeper/etc/collapsed
BitKeeper/etc/collapsed
+1
-0
mysql-test/r/rpl_ignore_table.result
mysql-test/r/rpl_ignore_table.result
+16
-0
mysql-test/t/rpl_ignore_table-slave.opt
mysql-test/t/rpl_ignore_table-slave.opt
+1
-1
mysql-test/t/rpl_ignore_table.test
mysql-test/t/rpl_ignore_table.test
+23
-0
sql/sql_parse.cc
sql/sql_parse.cc
+17
-1
No files found.
BitKeeper/etc/collapsed
View file @
c378d3a1
...
...
@@ -8,3 +8,4 @@
4519a6c5BVUxEHTf5iJnjZkixMBs8g
451ab499rgdjXyOnUDqHu-wBDoS-OQ
452c6c6dAjuNghfc1ObZ_UQ5SCl85g
4538a7b0EbDHHkWPbIwxO6ZIDdg6Dg
mysql-test/r/rpl_ignore_table.result
View file @
c378d3a1
...
...
@@ -14,3 +14,19 @@ SELECT * FROM t4;
a
DROP TABLE t1;
DROP TABLE t4;
DROP TABLE IF EXISTS t5;
CREATE TABLE t5 (
word varchar(50) collate utf8_unicode_ci NOT NULL default ''
) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET @@session.character_set_client=33,@@session.collation_connection=192;
CREATE TEMPORARY TABLE tmptbl504451f4258$1 (id INT NOT NULL) ENGINE=MEMORY;
INSERT INTO t5 (word) VALUES ('TEST’');
SELECT HEX(word) FROM t5;
HEX(word)
54455354E28099
SELECT HEX(word) FROM t5;
HEX(word)
54455354E28099
SELECT * FROM tmptbl504451f4258$1;
ERROR 42S02: Table 'test.tmptbl504451f4258$1' doesn't exist
DROP TABLE t5;
mysql-test/t/rpl_ignore_table-slave.opt
View file @
c378d3a1
--replicate-ignore-table=test.t1 --replicate-ignore-table=test.t2 --replicate-ignore-table=test.t3
--replicate-ignore-table=test.t1 --replicate-ignore-table=test.t2 --replicate-ignore-table=test.t3
--replicate-wild-ignore-table=%.tmptbl%
mysql-test/t/rpl_ignore_table.test
View file @
c378d3a1
...
...
@@ -26,3 +26,26 @@ SELECT * FROM t4;
connection
master
;
DROP
TABLE
t1
;
DROP
TABLE
t4
;
#
# bug#22877 replication character sets get out of sync
# using replicate-wild-ignore-table
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
t5
;
--
enable_warnings
CREATE
TABLE
t5
(
word
varchar
(
50
)
collate
utf8_unicode_ci
NOT
NULL
default
''
)
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
;
SET
@@
session
.
character_set_client
=
33
,
@@
session
.
collation_connection
=
192
;
CREATE
TEMPORARY
TABLE
tmptbl504451f4258
$
1
(
id
INT
NOT
NULL
)
ENGINE
=
MEMORY
;
INSERT
INTO
t5
(
word
)
VALUES
(
'TEST’'
);
SELECT
HEX
(
word
)
FROM
t5
;
sync_slave_with_master
;
connection
slave
;
SELECT
HEX
(
word
)
FROM
t5
;
--
error
1146
SELECT
*
FROM
tmptbl504451f4258
$
1
;
connection
master
;
DROP
TABLE
t5
;
sql/sql_parse.cc
View file @
c378d3a1
...
...
@@ -2494,7 +2494,23 @@ mysql_execute_command(THD *thd)
{
/* we warn the slave SQL thread */
my_message
(
ER_SLAVE_IGNORED_TABLE
,
ER
(
ER_SLAVE_IGNORED_TABLE
),
MYF
(
0
));
reset_one_shot_variables
(
thd
);
if
(
thd
->
one_shot_set
)
{
/*
It's ok to check thd->one_shot_set here:
The charsets in a MySQL 5.0 slave can change by both a binlogged
SET ONE_SHOT statement and the event-internal charset setting,
and these two ways to change charsets do not seems to work
together.
At least there seems to be problems in the rli cache for
charsets if we are using ONE_SHOT. Note that this is normally no
problem because either the >= 5.0 slave reads a 4.1 binlog (with
ONE_SHOT) *or* or 5.0 binlog (without ONE_SHOT) but never both."
*/
reset_one_shot_variables
(
thd
);
}
DBUG_RETURN
(
0
);
}
}
...
...
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