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
c41f8b65
Commit
c41f8b65
authored
Oct 31, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.1-maint
into mysql.com:/home/ram/work/b30679/b30679.5.1
parents
030d1a19
bb79b466
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
client/mysqlcheck.c
client/mysqlcheck.c
+5
-2
mysql-test/r/mysqlcheck.result
mysql-test/r/mysqlcheck.result
+18
-0
mysql-test/t/mysqlcheck.test
mysql-test/t/mysqlcheck.test
+13
-0
No files found.
client/mysqlcheck.c
View file @
c41f8b65
...
...
@@ -557,8 +557,11 @@ static int process_all_tables_in_db(char *database)
else
{
while
((
row
=
mysql_fetch_row
(
res
)))
/* Skip tables with an engine of NULL (probably a view). */
if
(
row
[
1
])
/*
Skip tables with an engine of NULL (probably a view)
if we don't perform renaming.
*/
if
(
row
[
1
]
||
what_to_do
==
DO_UPGRADE
)
{
handle_request_for_tables
(
row
[
0
],
fixed_name_length
(
row
[
0
]));
}
...
...
mysql-test/r/mysqlcheck.result
View file @
c41f8b65
...
...
@@ -63,3 +63,21 @@ test.t 1 OK
test.t`1 OK
drop table `t``1`, `t 1`;
End of 5.0 tests
create table t1(a int);
create view v1 as select * from t1;
show tables;
Tables_in_test
t1
v1
show tables;
Tables_in_test
t1
#mysql50#v-1
v1
show tables;
Tables_in_test
t1
v1
v-1
drop view v1, `v-1`;
drop table t1;
mysql-test/t/mysqlcheck.test
View file @
c41f8b65
...
...
@@ -47,3 +47,16 @@ create table `t 1`(a int);
drop
table
`t``1`
,
`t 1`
;
--
echo
End
of
5.0
tests
#
# Bug #30679: 5.1 name encoding not performed for views during upgrade
#
create
table
t1
(
a
int
);
create
view
v1
as
select
*
from
t1
;
show
tables
;
--
copy_file
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
v1
.
frm
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
v
-
1.
frm
show
tables
;
--
exec
$MYSQL_CHECK
--
check
-
upgrade
--
fix
-
table
-
names
--
databases
test
show
tables
;
drop
view
v1
,
`v-1`
;
drop
table
t1
;
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