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
331ff0d8
Commit
331ff0d8
authored
Mar 20, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
3e5f1eae
02d2d70c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/drop_temp_table.result
mysql-test/r/drop_temp_table.result
+2
-2
sql/sql_base.cc
sql/sql_base.cc
+3
-2
No files found.
mysql-test/r/drop_temp_table.result
View file @
331ff0d8
...
@@ -13,6 +13,6 @@ Log_name Pos Event_type Server_id Orig_log_pos Info
...
@@ -13,6 +13,6 @@ Log_name Pos Event_type Server_id Orig_log_pos Info
master-bin.001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
master-bin.001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
master-bin.001 79 Query 1 79 use `test`; create database `drop-temp+table-test`
master-bin.001 79 Query 1 79 use `test`; create database `drop-temp+table-test`
master-bin.001 152 Query 1 152 use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.001 152 Query 1 152 use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.001 246 Query 1 246 use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE `drop-temp+table-test`.`table:name`
master-bin.001 246 Query 1 246 use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE
IF EXISTS
`drop-temp+table-test`.`table:name`
master-bin.001 3
65 Query 1 36
5 use `drop-temp+table-test`; DO RELEASE_LOCK("a")
master-bin.001 3
75 Query 1 37
5 use `drop-temp+table-test`; DO RELEASE_LOCK("a")
drop database `drop-temp+table-test`;
drop database `drop-temp+table-test`;
sql/sql_base.cc
View file @
331ff0d8
...
@@ -547,7 +547,7 @@ void close_temporary_tables(THD *thd)
...
@@ -547,7 +547,7 @@ void close_temporary_tables(THD *thd)
return
;
return
;
LINT_INIT
(
end
);
LINT_INIT
(
end
);
query_buf_size
=
50
;
// Enough for DROP ... TABLE
query_buf_size
=
50
;
// Enough for DROP ... TABLE
IF EXISTS
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
table
->
next
)
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
table
->
next
)
/*
/*
...
@@ -558,7 +558,8 @@ void close_temporary_tables(THD *thd)
...
@@ -558,7 +558,8 @@ void close_temporary_tables(THD *thd)
query_buf_size
+=
table
->
key_length
+
1
;
query_buf_size
+=
table
->
key_length
+
1
;
if
((
query
=
alloc_root
(
&
thd
->
mem_root
,
query_buf_size
)))
if
((
query
=
alloc_root
(
&
thd
->
mem_root
,
query_buf_size
)))
end
=
strmov
(
query
,
"DROP /*!40005 TEMPORARY */ TABLE "
);
// Better add "if exists", in case a RESET MASTER has been done
end
=
strmov
(
query
,
"DROP /*!40005 TEMPORARY */ TABLE IF EXISTS "
);
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
next
)
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
next
)
{
{
...
...
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