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
deb74591
Commit
deb74591
authored
Oct 09, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #31470 ndb table with special characters in name are not discovered correctly
parent
a586bb61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
2 deletions
+49
-2
mysql-test/suite/ndb/r/ndb_multi.result
mysql-test/suite/ndb/r/ndb_multi.result
+21
-0
mysql-test/suite/ndb/t/ndb_multi.test
mysql-test/suite/ndb/t/ndb_multi.test
+27
-0
sql/handler.cc
sql/handler.cc
+1
-2
No files found.
mysql-test/suite/ndb/r/ndb_multi.result
View file @
deb74591
...
@@ -121,3 +121,24 @@ show tables;
...
@@ -121,3 +121,24 @@ show tables;
Tables_in_db
Tables_in_db
t2
t2
drop database db;
drop database db;
use test;
create table `test`.`t1$EX`
(server_id int unsigned,
master_server_id int unsigned,
master_epoch bigint unsigned,
count int unsigned,
primary key(server_id, master_server_id,
master_epoch, count))
engine ndb;
show tables like '%$%';
Tables_in_test (%$%)
t1$EX
use test;
show tables like '%$%';
Tables_in_test (%$%)
t1$EX
drop table `test`.`t1$EX`;
show tables like '%$%';
Tables_in_test (%$%)
show tables like '%$%';
Tables_in_test (%$%)
mysql-test/suite/ndb/t/ndb_multi.test
View file @
deb74591
...
@@ -122,4 +122,31 @@ connection server2;
...
@@ -122,4 +122,31 @@ connection server2;
show
tables
;
show
tables
;
drop
database
db
;
drop
database
db
;
#
# bug#31470, ndb table with special characters in name
# are not discovered correctly
connection
server1
;
use
test
;
create
table
`test`
.
`t1$EX`
(
server_id
int
unsigned
,
master_server_id
int
unsigned
,
master_epoch
bigint
unsigned
,
count
int
unsigned
,
primary
key
(
server_id
,
master_server_id
,
master_epoch
,
count
))
engine
ndb
;
# check that table shows up ok on both servers
# before bugfix table would not show up on server2
show
tables
like
'%$%'
;
connection
server2
;
use
test
;
show
tables
like
'%$%'
;
# check cleanup
drop
table
`test`
.
`t1$EX`
;
show
tables
like
'%$%'
;
connection
server1
;
connection
server1
;
show
tables
like
'%$%'
;
sql/handler.cc
View file @
deb74591
...
@@ -2641,8 +2641,7 @@ int ha_create_table_from_engine(THD* thd, const char *db, const char *name)
...
@@ -2641,8 +2641,7 @@ int ha_create_table_from_engine(THD* thd, const char *db, const char *name)
frmblob and frmlen are set, write the frm to disk
frmblob and frmlen are set, write the frm to disk
*/
*/
(
void
)
strxnmov
(
path
,
FN_REFLEN
-
1
,
mysql_data_home
,
FN_ROOTDIR
,
build_table_filename
(
path
,
FN_REFLEN
-
1
,
db
,
name
,
""
,
0
);
db
,
FN_ROOTDIR
,
name
,
NullS
);
// Save the frm file
// Save the frm file
error
=
writefrm
(
path
,
frmblob
,
frmlen
);
error
=
writefrm
(
path
,
frmblob
,
frmlen
);
my_free
(
frmblob
,
MYF
(
0
));
my_free
(
frmblob
,
MYF
(
0
));
...
...
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