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
b2e23abc
Commit
b2e23abc
authored
Nov 23, 2007
by
gluh@eagle.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
parents
ac98a45c
d380a8fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
2 deletions
+23
-2
mysql-test/r/drop.result
mysql-test/r/drop.result
+5
-0
mysql-test/t/drop.test
mysql-test/t/drop.test
+13
-0
sql/sql_db.cc
sql/sql_db.cc
+1
-0
sql/sql_table.cc
sql/sql_table.cc
+3
-2
sql/table.h
sql/table.h
+1
-0
No files found.
mysql-test/r/drop.result
View file @
b2e23abc
...
...
@@ -85,3 +85,8 @@ select 1;
1
unlock tables;
End of 5.0 tests
create database mysql_test;
create table mysql_test.t1(f1 int);
create table mysql_test.`#sql-347f_7` (f1 int);
drop database mysql_test;
End of 5.1 tests
mysql-test/t/drop.test
View file @
b2e23abc
...
...
@@ -122,3 +122,16 @@ disconnect addconroot2;
connection
default
;
--
echo
End
of
5.0
tests
#
# Bug#30152 MySQLD crash duing alter table causes DROP DATABASE to FAIL due to temp file
#
create
database
mysql_test
;
create
table
mysql_test
.
t1
(
f1
int
);
create
table
mysql_test
.
`#sql-347f_7`
(
f1
int
);
create
table
mysql_test
.
`#sql-347f_8`
(
f1
int
);
drop
table
mysql_test
.
`#sql-347f_8`
;
copy_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql_test
/
t1
.
frm
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql_test
/
#sql-347f_6.frm;
drop
database
mysql_test
;
--
echo
End
of
5.1
tests
sql/sql_db.cc
View file @
b2e23abc
...
...
@@ -1111,6 +1111,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
VOID
(
filename_to_tablename
(
file
->
name
,
table_list
->
table_name
,
strlen
(
file
->
name
)
+
1
));
table_list
->
alias
=
table_list
->
table_name
;
// If lower_case_table_names=2
table_list
->
internal_tmp_table
=
is_prefix
(
file
->
name
,
tmp_file_prefix
);
/* Link into list */
(
*
tot_list_next
)
=
table_list
;
tot_list_next
=
&
table_list
->
next_local
;
...
...
sql/sql_table.cc
View file @
b2e23abc
...
...
@@ -1663,8 +1663,9 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
}
alias
=
(
lower_case_table_names
==
2
)
?
table
->
alias
:
table
->
table_name
;
/* remove .frm file and engine files */
path_length
=
build_table_filename
(
path
,
sizeof
(
path
),
db
,
alias
,
reg_ext
,
0
);
path_length
=
build_table_filename
(
path
,
sizeof
(
path
),
db
,
alias
,
reg_ext
,
table
->
internal_tmp_table
?
FN_IS_TMP
:
0
);
}
if
(
drop_temporary
||
(
table_type
==
NULL
&&
...
...
sql/table.h
View file @
b2e23abc
...
...
@@ -1081,6 +1081,7 @@ struct TABLE_LIST
... SELECT implementation).
*/
bool
create
;
bool
internal_tmp_table
;
/* View creation context. */
...
...
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