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
ac487f52
Commit
ac487f52
authored
Jun 22, 2006
by
bar@bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/home/bar/mysql-5.1-new.19392
into mysql.com:/usr/home/bar/mysql-5.1-kt
parents
5eea9720
bcb2ceec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
mysql-test/r/renamedb.result
mysql-test/r/renamedb.result
+4
-0
mysql-test/t/renamedb.test
mysql-test/t/renamedb.test
+8
-0
sql/sql_db.cc
sql/sql_db.cc
+3
-3
No files found.
mysql-test/r/renamedb.result
View file @
ac487f52
...
...
@@ -27,3 +27,7 @@ a
2
3
drop database testdb2;
create database testdb1;
rename database testdb1 to testdb1;
ERROR HY000: Can't create database 'testdb1'; database exists
drop database testdb1;
mysql-test/t/renamedb.test
View file @
ac487f52
...
...
@@ -16,3 +16,11 @@ select database();
show
tables
;
select
a
from
t1
order
by
a
;
drop
database
testdb2
;
#
# Bug#19392 Rename Database: Crash if case change
#
create
database
testdb1
;
--
error
1007
rename
database
testdb1
to
testdb1
;
drop
database
testdb1
;
sql/sql_db.cc
View file @
ac487f52
...
...
@@ -134,9 +134,9 @@ void lock_db_delete(const char *name, uint length)
{
my_dblock_t
*
opt
;
safe_mutex_assert_owner
(
&
LOCK_lock_db
);
opt
=
(
my_dblock_t
*
)
hash_search
(
&
lock_db_cache
,
(
const
byte
*
)
name
,
length
);
DBUG_ASSERT
(
opt
!=
NULL
);
hash_delete
(
&
lock_db_cache
,
(
byte
*
)
opt
);
if
((
opt
=
(
my_dblock_t
*
)
hash_search
(
&
lock_db_cache
,
(
const
byte
*
)
name
,
length
)))
hash_delete
(
&
lock_db_cache
,
(
byte
*
)
opt
);
}
...
...
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