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
f0f4efd7
Commit
f0f4efd7
authored
May 20, 2009
by
Jim Winstead
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqlcheck failed to fix table names when using the --fix-table-names
and --all-in-1 options together. (Bug #31821)
parent
d57bb98f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
client/mysqlcheck.c
client/mysqlcheck.c
+2
-2
mysql-test/r/mysqlcheck.result
mysql-test/r/mysqlcheck.result
+14
-0
mysql-test/t/mysqlcheck.test
mysql-test/t/mysqlcheck.test
+17
-0
No files found.
client/mysqlcheck.c
View file @
f0f4efd7
...
...
@@ -442,7 +442,7 @@ static int process_selected_tables(char *db, char **table_names, int tables)
{
if
(
use_db
(
db
))
return
1
;
if
(
opt_all_in_1
)
if
(
opt_all_in_1
&&
what_to_do
!=
DO_UPGRADE
)
{
/*
We need table list in form `a`, `b`, `c`
...
...
@@ -536,7 +536,7 @@ static int process_all_tables_in_db(char *database)
num_columns
=
mysql_num_fields
(
res
);
if
(
opt_all_in_1
)
if
(
opt_all_in_1
&&
what_to_do
!=
DO_UPGRADE
)
{
/*
We need table list in form `a`, `b`, `c`
...
...
mysql-test/r/mysqlcheck.result
View file @
f0f4efd7
...
...
@@ -186,4 +186,18 @@ a
500
DROP DATABASE `a@b`;
USE test;
#
# Bug #31821: --all-in-1 and --fix-table-names don't work together
#
drop table if exists `#mysql50#t1-1`;
create table `#mysql50#t1-1` (a int);
show tables like 't1-1';
Tables_in_test (t1-1)
t1-1
drop table `t1-1`;
create table `#mysql50#t1-1` (a int);
show tables like 't1-1';
Tables_in_test (t1-1)
t1-1
drop table `t1-1`;
End of 5.1 tests
mysql-test/t/mysqlcheck.test
View file @
f0f4efd7
...
...
@@ -193,5 +193,22 @@ DROP DATABASE `a@b`;
USE
test
;
--
echo
#
--
echo
# Bug #31821: --all-in-1 and --fix-table-names don't work together
--
echo
#
--
disable_warnings
drop
table
if
exists
`#mysql50#t1-1`
;
--
enable_warnings
create
table
`#mysql50#t1-1`
(
a
int
);
--
exec
$MYSQL_CHECK
--
all
-
in
-
1
--
fix
-
table
-
names
--
databases
test
show
tables
like
't1-1'
;
drop
table
`t1-1`
;
create
table
`#mysql50#t1-1`
(
a
int
);
--
exec
$MYSQL_CHECK
--
all
-
in
-
1
--
fix
-
table
-
names
test
"#mysql50#t1-1"
show
tables
like
't1-1'
;
drop
table
`t1-1`
;
--
echo
End
of
5.1
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