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
6674e1e1
Commit
6674e1e1
authored
Jun 10, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
6c38471e
28aa57d6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
5 deletions
+38
-5
mysql-test/r/lock_multi.result
mysql-test/r/lock_multi.result
+7
-0
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+6
-0
mysql-test/t/lock_multi.test
mysql-test/t/lock_multi.test
+12
-0
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+9
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-5
No files found.
mysql-test/r/lock_multi.result
View file @
6674e1e1
...
...
@@ -36,3 +36,10 @@ lock table t1 write, t2 write;
drop table t2;
ERROR 42S02: Table 'test.t2' doesn't exist
drop table t1;
create table t1(a int);
lock tables t1 write;
show columns from t1;
Field Type Null Key Default Extra
a int(11) YES NULL
unlock tables;
drop table t1;
mysql-test/r/mysql.result
View file @
6674e1e1
...
...
@@ -48,3 +48,9 @@ Test 'go' command g
a
1
drop table t1;
create table t1(a int);
lock tables t1 write;
database()
test
unlock tables;
drop table t1;
mysql-test/t/lock_multi.test
View file @
6674e1e1
...
...
@@ -94,3 +94,15 @@ connection reader;
reap
;
connection
locker
;
drop
table
t1
;
#
# BUG#9998 - MySQL client hangs on USE "database"
create
table
t1
(
a
int
);
lock
tables
t1
write
;
connection
reader
;
show
columns
from
t1
;
connection
locker
;
unlock
tables
;
drop
table
t1
;
mysql-test/t/mysql.test
View file @
6674e1e1
...
...
@@ -30,5 +30,14 @@ select "Test 'go' command(vertical output) \G" as " ";
select
"Test 'go' command \g"
as
" "
;
--
exec
$MYSQL
test
-
e
'select * from t1\g'
--
enable_query_log
drop
table
t1
;
#
# BUG9998 - MySQL client hangs on USE "database"
#
create
table
t1
(
a
int
);
lock
tables
t1
write
;
--
exec
$MYSQL
-
e
'use test; select database();'
unlock
tables
;
drop
table
t1
;
sql/sql_show.cc
View file @
6674e1e1
...
...
@@ -348,7 +348,7 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
table_list
->
table_name
));
/* Only one table for now, but VIEW can involve several tables */
if
(
open_
and_lock
_tables
(
thd
,
table_list
))
if
(
open_
normal_and_derived
_tables
(
thd
,
table_list
))
{
DBUG_RETURN
(
TRUE
);
}
...
...
@@ -540,8 +540,7 @@ mysqld_list_fields(THD *thd, TABLE_LIST *table_list, const char *wild)
DBUG_ENTER
(
"mysqld_list_fields"
);
DBUG_PRINT
(
"enter"
,(
"table: %s"
,
table_list
->
table_name
));
table_list
->
lock_type
=
TL_UNLOCK
;
if
(
open_and_lock_tables
(
thd
,
table_list
))
if
(
open_normal_and_derived_tables
(
thd
,
table_list
))
DBUG_VOID_RETURN
;
table
=
table_list
->
table
;
...
...
@@ -1945,7 +1944,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
bool
res
;
lex
->
all_selects_list
=
lsel
;
res
=
open_
and_lock
_tables
(
thd
,
show_table_list
);
res
=
open_
normal_and_derived
_tables
(
thd
,
show_table_list
);
if
(
schema_table
->
process_table
(
thd
,
show_table_list
,
table
,
res
,
show_table_list
->
db
,
show_table_list
->
alias
))
...
...
@@ -2050,7 +2049,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
show_table_list
->
lock_type
=
lock_type
;
lex
->
all_selects_list
=
&
sel
;
lex
->
derived_tables
=
0
;
res
=
open_
and_lock
_tables
(
thd
,
show_table_list
);
res
=
open_
normal_and_derived
_tables
(
thd
,
show_table_list
);
if
(
schema_table
->
process_table
(
thd
,
show_table_list
,
table
,
res
,
base_name
,
show_table_list
->
alias
))
...
...
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