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
7453382a
Commit
7453382a
authored
Oct 09, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #31470 ndb table with special characters in name are not discovered correctly
parent
0bf78805
Changes
3
Hide 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 @
7453382a
...
...
@@ -121,3 +121,24 @@ show tables;
Tables_in_db
t2
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 @
7453382a
...
...
@@ -122,4 +122,31 @@ connection server2;
show
tables
;
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
;
show
tables
like
'%$%'
;
sql/handler.cc
View file @
7453382a
...
...
@@ -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
*/
(
void
)
strxnmov
(
path
,
FN_REFLEN
-
1
,
mysql_data_home
,
FN_ROOTDIR
,
db
,
FN_ROOTDIR
,
name
,
NullS
);
build_table_filename
(
path
,
FN_REFLEN
-
1
,
db
,
name
,
""
,
0
);
// Save the frm file
error
=
writefrm
(
path
,
frmblob
,
frmlen
);
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