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
cd191932
Commit
cd191932
authored
Apr 03, 2007
by
Justin.He/justin.he@dev3-240.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#25875, Newly created table through CREATE TABLE .. LIKE has no ndb_dd attributes
parent
cf21cf2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
sql/sql_table.cc
sql/sql_table.cc
+13
-0
No files found.
sql/sql_table.cc
View file @
cd191932
...
...
@@ -4611,6 +4611,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
#ifdef WITH_PARTITION_STORAGE_ENGINE
char
tmp_path
[
FN_REFLEN
];
#endif
char
ts_name
[
FN_LEN
];
TABLE_LIST
src_tables_list
,
dst_tables_list
;
DBUG_ENTER
(
"mysql_create_like_table"
);
...
...
@@ -4691,6 +4692,18 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
if
(
simple_open_n_lock_tables
(
thd
,
&
src_tables_list
))
DBUG_RETURN
(
TRUE
);
/*
For bug#25875, Newly created table through CREATE TABLE .. LIKE
has no ndb_dd attributes;
Add something to get possible tablespace info from src table,
it can get valid tablespace name only for disk-base ndb table
*/
if
((
src_tables_list
.
table
->
file
->
get_tablespace_name
(
thd
,
ts_name
,
FN_LEN
)))
{
create_info
->
tablespace
=
ts_name
;
create_info
->
storage_media
=
HA_SM_DISK
;
}
/*
Validate the destination table
...
...
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