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
9c3349f5
Commit
9c3349f5
authored
Jul 13, 2005
by
gluh@eagle.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#11685 SHOW TABLES; doesn't update Com_show_tables
parent
6da9cf09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+5
-2
No files found.
mysql-test/r/information_schema.result
View file @
9c3349f5
...
...
@@ -674,7 +674,7 @@ Database Table In_use Name_locked
mysql user 0 0
show status where variable_name like "%database%";
Variable_name Value
Com_show_databases
0
Com_show_databases
3
show variables where variable_name like "skip_show_databas";
Variable_name Value
show global status like "Threads_running";
...
...
sql/sql_parse.cc
View file @
9c3349f5
...
...
@@ -2193,6 +2193,8 @@ int prepare_schema_table(THD *thd, LEX *lex, Table_ident *table_ident,
TABLE_LIST
*
table_list
=
(
TABLE_LIST
*
)
select_lex
->
table_list
.
first
;
table_list
->
schema_select_lex
=
sel
;
table_list
->
schema_table_reformed
=
1
;
statistic_increment
(
thd
->
status_var
.
com_stat
[
lex
->
orig_sql_command
],
&
LOCK_status
);
DBUG_RETURN
(
0
);
}
...
...
@@ -2365,9 +2367,10 @@ mysql_execute_command(THD *thd)
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--read-only"
);
DBUG_RETURN
(
-
1
);
}
if
(
lex
->
orig_sql_command
==
SQLCOM_END
)
statistic_increment
(
thd
->
status_var
.
com_stat
[
lex
->
sql_command
],
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stat
[
lex
->
sql_command
],
&
LOCK_status
);
switch
(
lex
->
sql_command
)
{
case
SQLCOM_SELECT
:
{
...
...
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