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
24d9bbad
Commit
24d9bbad
authored
Apr 08, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysqldev@production.mysql.com:my/mysql-5.1-release
into mysql1000.(none):/home/andrei/MySQL/BARE/mysql-5.1-release
parents
1d5f5887
73febb3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
mysql-test/suite/rpl/r/rpl_row_create_table.result
mysql-test/suite/rpl/r/rpl_row_create_table.result
+14
-0
mysql-test/suite/rpl/t/rpl_row_create_table.test
mysql-test/suite/rpl/t/rpl_row_create_table.test
+27
-0
sql/sql_insert.cc
sql/sql_insert.cc
+1
-1
No files found.
mysql-test/suite/rpl/r/rpl_row_create_table.result
View file @
24d9bbad
...
@@ -417,3 +417,17 @@ Log_name Pos Event_type Server_id End_log_pos Info
...
@@ -417,3 +417,17 @@ Log_name Pos Event_type Server_id End_log_pos Info
SELECT * FROM t2 ORDER BY a;
SELECT * FROM t2 ORDER BY a;
a
a
DROP TABLE t1,t2;
DROP TABLE t1,t2;
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(1);
CREATE TABLE t2 (a INT UNIQUE) ENGINE=INNODB SELECT * FROM t1;
ERROR 23000: Duplicate entry '1' for key 'a'
INSERT INTO t1 VALUES (2);
*** the proof of the fix:
select must show that the last insert performed on the slave ***
SELECT * FROM t1;
a
1
1
2
DROP TABLE t1;
end of the tests
mysql-test/suite/rpl/t/rpl_row_create_table.test
View file @
24d9bbad
...
@@ -234,3 +234,30 @@ SELECT * FROM t2 ORDER BY a;
...
@@ -234,3 +234,30 @@ SELECT * FROM t2 ORDER BY a;
connection
master
;
connection
master
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
sync_slave_with_master
;
sync_slave_with_master
;
#
# bug#35762 Failing CREATE-SELECT produces bad binlog in row mode
#
connection
master
;
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
1
);
--
error
ER_DUP_ENTRY
CREATE
TABLE
t2
(
a
INT
UNIQUE
)
ENGINE
=
INNODB
SELECT
*
FROM
t1
;
INSERT
INTO
t1
VALUES
(
2
);
sync_slave_with_master
;
# connection slave;
--
echo
***
the
proof
of
the
fix
:
--
echo
select
must
show
that
the
last
insert
performed
on
the
slave
***
SELECT
*
FROM
t1
;
connection
master
;
DROP
TABLE
t1
;
sync_slave_with_master
;
--
echo
end
of
the
tests
sql/sql_insert.cc
View file @
24d9bbad
...
@@ -3720,7 +3720,7 @@ void select_create::abort()
...
@@ -3720,7 +3720,7 @@ void select_create::abort()
select_insert
::
abort
();
select_insert
::
abort
();
thd
->
transaction
.
stmt
.
modified_non_trans_table
=
FALSE
;
thd
->
transaction
.
stmt
.
modified_non_trans_table
=
FALSE
;
reenable_binlog
(
thd
);
reenable_binlog
(
thd
);
thd
->
binlog_flush_pending_rows_event
(
TRUE
);
if
(
m_plock
)
if
(
m_plock
)
{
{
...
...
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