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
23332d0d
Commit
23332d0d
authored
Mar 07, 2006
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.b17142
parents
3f7b8cfb
02023859
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
mysql-test/r/upgrade.result
mysql-test/r/upgrade.result
+16
-0
mysql-test/t/upgrade.test
mysql-test/t/upgrade.test
+18
-0
sql/table.cc
sql/table.cc
+3
-0
No files found.
mysql-test/r/upgrade.result
View file @
23332d0d
...
...
@@ -41,3 +41,19 @@ t1
t-1
drop database `mysqltest1`;
drop database `mysqltest-1`;
drop table if exists `txu@0023P@0023p1`;
drop table if exists `txu#P#p1`;
create table `txu#P#p1` (s1 int);
insert into `txu#P#p1` values (1);
select * from `txu@0023P@0023p1`;
ERROR 42S02: Table 'test.txu@0023P@0023p1' doesn't exist
create table `txu@0023P@0023p1` (s1 int);
insert into `txu@0023P@0023p1` values (2);
select * from `txu@0023P@0023p1`;
s1
2
select * from `txu#P#p1`;
s1
1
drop table `txu@0023P@0023p1`;
drop table `txu#P#p1`;
mysql-test/t/upgrade.test
View file @
23332d0d
...
...
@@ -29,3 +29,21 @@ show tables in `mysqltest1`;
show
tables
in
`mysqltest-1`
;
drop
database
`mysqltest1`
;
drop
database
`mysqltest-1`
;
#
# Bug#17142: Crash if create with encoded name
#
--
disable_warnings
drop
table
if
exists
`txu@0023P@0023p1`
;
drop
table
if
exists
`txu#P#p1`
;
--
enable_warnings
create
table
`txu#P#p1`
(
s1
int
);
insert
into
`txu#P#p1`
values
(
1
);
--
error
1146
select
*
from
`txu@0023P@0023p1`
;
create
table
`txu@0023P@0023p1`
(
s1
int
);
insert
into
`txu@0023P@0023p1`
values
(
2
);
select
*
from
`txu@0023P@0023p1`
;
select
*
from
`txu#P#p1`
;
drop
table
`txu@0023P@0023p1`
;
drop
table
`txu#P#p1`
;
sql/table.cc
View file @
23332d0d
...
...
@@ -298,6 +298,9 @@ int open_table_def(THD *thd, TABLE_SHARE *share, uint db_flags)
strxmov
(
path
,
share
->
normalized_path
.
str
,
reg_ext
,
NullS
);
if
((
file
=
my_open
(
path
,
O_RDONLY
|
O_SHARE
,
MYF
(
0
)))
<
0
)
{
if
(
strchr
(
share
->
table_name
.
str
,
'@'
))
goto
err_not_open
;
/* Try unecoded 5.0 name */
uint
length
;
strxnmov
(
path
,
sizeof
(
path
)
-
1
,
...
...
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