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
95b3b2ea
Commit
95b3b2ea
authored
Aug 02, 2006
by
jimw@rama.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into rama.(none):/home/jimw/my/mysql-5.0-16502
parents
502498ed
8489a8db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
4 deletions
+33
-4
client/mysqlcheck.c
client/mysqlcheck.c
+12
-4
mysql-test/r/mysqlcheck.result
mysql-test/r/mysqlcheck.result
+7
-0
mysql-test/t/mysqlcheck.test
mysql-test/t/mysqlcheck.test
+14
-0
No files found.
client/mysqlcheck.c
View file @
95b3b2ea
...
...
@@ -458,7 +458,7 @@ static int process_all_tables_in_db(char *database)
LINT_INIT
(
res
);
if
(
use_db
(
database
))
return
1
;
if
(
mysql_query
(
sock
,
"SHOW TABLES"
)
||
if
(
mysql_query
(
sock
,
"SHOW TABLE
STATU
S"
)
||
!
((
res
=
mysql_store_result
(
sock
))))
return
1
;
...
...
@@ -484,8 +484,12 @@ static int process_all_tables_in_db(char *database)
}
for
(
end
=
tables
+
1
;
(
row
=
mysql_fetch_row
(
res
))
;)
{
end
=
fix_table_name
(
end
,
row
[
0
]);
*
end
++=
','
;
/* Skip tables with an engine of NULL (probably a view). */
if
(
row
[
1
])
{
end
=
fix_table_name
(
end
,
row
[
0
]);
*
end
++=
','
;
}
}
*--
end
=
0
;
if
(
tot_length
)
...
...
@@ -495,7 +499,11 @@ static int process_all_tables_in_db(char *database)
else
{
while
((
row
=
mysql_fetch_row
(
res
)))
handle_request_for_tables
(
row
[
0
],
strlen
(
row
[
0
]));
/* Skip tables with an engine of NULL (probably a view). */
if
(
row
[
1
])
{
handle_request_for_tables
(
row
[
0
],
strlen
(
row
[
0
]));
}
}
mysql_free_result
(
res
);
return
0
;
...
...
mysql-test/r/mysqlcheck.result
View file @
95b3b2ea
...
...
@@ -32,3 +32,10 @@ mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
create table t1 (a int);
create view v1 as select * from t1;
test.t1 OK
test.t1 OK
drop view v1;
drop table t1;
End of 5.0 tests
mysql-test/t/mysqlcheck.test
View file @
95b3b2ea
...
...
@@ -9,3 +9,17 @@
--
replace_result
'Table is already up to date'
OK
--
exec
$MYSQL_CHECK
--
analyze
--
optimize
--
databases
test
information_schema
mysql
--
exec
$MYSQL_CHECK
--
analyze
--
optimize
information_schema
schemata
#
# Bug #16502: mysqlcheck tries to check views
#
create
table
t1
(
a
int
);
create
view
v1
as
select
*
from
t1
;
--
replace_result
'Table is already up to date'
OK
--
exec
$MYSQL_CHECK
--
analyze
--
optimize
--
databases
test
--
replace_result
'Table is already up to date'
OK
--
exec
$MYSQL_CHECK
--
all
-
in
-
1
--
analyze
--
optimize
--
databases
test
drop
view
v1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
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