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
9519c8e5
Commit
9519c8e5
authored
Nov 03, 2009
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Manual Merge
parents
1ca80ed1
98198851
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/extra/binlog_tests/drop_temp_table.test
mysql-test/extra/binlog_tests/drop_temp_table.test
+10
-0
mysql-test/suite/binlog/r/binlog_row_drop_tmp_tbl.result
mysql-test/suite/binlog/r/binlog_row_drop_tmp_tbl.result
+1
-0
mysql-test/suite/binlog/r/binlog_stm_drop_tmp_tbl.result
mysql-test/suite/binlog/r/binlog_stm_drop_tmp_tbl.result
+1
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-0
No files found.
mysql-test/extra/binlog_tests/drop_temp_table.test
View file @
9519c8e5
...
...
@@ -48,6 +48,16 @@ DROP TABLE IF EXISTS tmp2, t;
--
enable_warnings
SELECT
GET_LOCK
(
"a"
,
10
);
#
# BUG48216 Replication fails on all slaves after upgrade to 5.0.86 on master
#
# When the session is closed, any temporary tables of the session are dropped
# and are binlogged. But it will be binlogged with a wrong database name when
# the length of the database name('drop-temp-table-test') is greater than the
# current database name('test').
#
USE
test
;
disconnect
con1
;
connection
con2
;
...
...
mysql-test/suite/binlog/r/binlog_row_drop_tmp_tbl.result
View file @
9519c8e5
...
...
@@ -19,6 +19,7 @@ DROP TABLE IF EXISTS tmp2, t;
SELECT GET_LOCK("a",10);
GET_LOCK("a",10)
1
USE test;
SELECT GET_LOCK("a",10);
GET_LOCK("a",10)
1
...
...
mysql-test/suite/binlog/r/binlog_stm_drop_tmp_tbl.result
View file @
9519c8e5
...
...
@@ -19,6 +19,7 @@ DROP TABLE IF EXISTS tmp2, t;
SELECT GET_LOCK("a",10);
GET_LOCK("a",10)
1
USE test;
SELECT GET_LOCK("a",10);
GET_LOCK("a",10)
1
...
...
sql/sql_base.cc
View file @
9519c8e5
...
...
@@ -1548,6 +1548,7 @@ void close_temporary_tables(THD *thd)
s_query
.
length
()
-
1
/* to remove trailing ',' */
,
0
,
FALSE
,
0
);
qinfo
.
db
=
db
.
ptr
();
qinfo
.
db_len
=
db
.
length
();
thd
->
variables
.
character_set_client
=
cs_save
;
mysql_bin_log
.
write
(
&
qinfo
);
thd
->
variables
.
pseudo_thread_id
=
save_pseudo_thread_id
;
...
...
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