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
3aaa49ed
Commit
3aaa49ed
authored
Oct 02, 2006
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#22550 (Replication of BIT column failing):
Adding test case.
parent
3b9b6e65
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
5 deletions
+45
-5
mysql-test/extra/rpl_tests/rpl_row_basic.test
mysql-test/extra/rpl_tests/rpl_row_basic.test
+0
-0
mysql-test/r/rpl_row_basic_11bugs.result
mysql-test/r/rpl_row_basic_11bugs.result
+21
-1
mysql-test/t/rpl_row_basic_11bugs.test
mysql-test/t/rpl_row_basic_11bugs.test
+21
-1
mysql-test/t/rpl_row_basic_2myisam.test
mysql-test/t/rpl_row_basic_2myisam.test
+1
-1
mysql-test/t/rpl_row_basic_3innodb.test
mysql-test/t/rpl_row_basic_3innodb.test
+1
-1
mysql-test/t/rpl_row_basic_7ndb.test
mysql-test/t/rpl_row_basic_7ndb.test
+1
-1
No files found.
mysql-test/
include/rpl_row_basic.inc
→
mysql-test/
extra/rpl_tests/rpl_row_basic.test
View file @
3aaa49ed
File moved
mysql-test/r/rpl_row_basic_11bugs.result
View file @
3aaa49ed
...
@@ -99,4 +99,24 @@ a
...
@@ -99,4 +99,24 @@ a
7
7
8
8
9
9
DROP TABLE t1;
================ Test for BUG#22550 ================
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
CREATE TABLE t1 (a BIT(1), b INT) ENGINE=MYISAM;
INSERT INTO t1 VALUES(1,2);
SELECT HEX(a),b FROM t1;
HEX(a) b
1 2
SELECT HEX(a),b FROM t1;
HEX(a) b
1 2
UPDATE t1 SET a=0 WHERE b=2;
SELECT HEX(a),b FROM t1;
HEX(a) b
0 2
SELECT HEX(a),b FROM t1;
HEX(a) b
0 2
mysql-test/t/rpl_row_basic_11bugs.test
View file @
3aaa49ed
...
@@ -93,4 +93,24 @@ INSERT INTO t1 VALUES (7),(8),(9);
...
@@ -93,4 +93,24 @@ INSERT INTO t1 VALUES (7),(8),(9);
sync_slave_with_master
;
sync_slave_with_master
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Bug#22550: Replication of BIT columns failing
--
echo
================
Test
for
BUG
#22550 ================
--
disable_query_log
--
source
include
/
master
-
slave
-
reset
.
inc
--
enable_query_log
connection
master
;
CREATE
TABLE
t1
(
a
BIT
(
1
),
b
INT
)
ENGINE
=
MYISAM
;
sync_slave_with_master
;
connection
master
;
INSERT
INTO
t1
VALUES
(
1
,
2
);
SELECT
HEX
(
a
),
b
FROM
t1
;
sync_slave_with_master
;
SELECT
HEX
(
a
),
b
FROM
t1
;
connection
master
;
UPDATE
t1
SET
a
=
0
WHERE
b
=
2
;
SELECT
HEX
(
a
),
b
FROM
t1
;
sync_slave_with_master
;
SELECT
HEX
(
a
),
b
FROM
t1
;
mysql-test/t/rpl_row_basic_2myisam.test
View file @
3aaa49ed
let
$type
=
'MYISAM'
;
let
$type
=
'MYISAM'
;
let
$extra_index
=
;
let
$extra_index
=
;
--
source
include
/
rpl_row_basic
.
inc
--
source
extra
/
rpl_tests
/
rpl_row_basic
.
test
mysql-test/t/rpl_row_basic_3innodb.test
View file @
3aaa49ed
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
let
$type
=
'INNODB'
;
let
$type
=
'INNODB'
;
let
$extra_index
=
;
let
$extra_index
=
;
--
source
include
/
rpl_row_basic
.
inc
--
source
extra
/
rpl_tests
/
rpl_row_basic
.
test
mysql-test/t/rpl_row_basic_7ndb.test
View file @
3aaa49ed
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_ndb
.
inc
let
$type
=
'NDB'
;
let
$type
=
'NDB'
;
let
$extra_index
=
;
let
$extra_index
=
;
--
source
include
/
rpl_row_basic
.
inc
--
source
extra
/
rpl_tests
/
rpl_row_basic
.
test
--
source
include
/
master
-
slave
-
end
.
inc
--
source
include
/
master
-
slave
-
end
.
inc
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