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
01af3ae5
Commit
01af3ae5
authored
Nov 25, 2009
by
Paul McCullagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And don't forget sub-partitions!
parent
01b78419
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
storage/pbxt/src/table_xt.cc
storage/pbxt/src/table_xt.cc
+18
-1
No files found.
storage/pbxt/src/table_xt.cc
View file @
01af3ae5
...
...
@@ -5241,9 +5241,26 @@ static void tab_make_table_name(XTTableHPtr tab, char *table_name, size_t size)
if
(
part_ptr
)
{
/* Add the partition extension (which is relevant to the engine). */
char
*
sub_part_ptr
;
part_ptr
+=
3
;
if
((
sub_part_ptr
=
strstr
(
part_ptr
,
"#SP#"
)))
xt_strncpy
(
sizeof
(
name_buf
),
name_buf
,
part_ptr
,
sub_part_ptr
-
part_ptr
);
else
xt_strcpy
(
sizeof
(
name_buf
),
name_buf
,
part_ptr
);
xt_strcat
(
size
,
table_name
,
" ("
);
len
=
strlen
(
table_name
);
myxt_static_convert_file_name
(
part_ptr
+
3
,
table_name
+
len
,
size
-
len
);
myxt_static_convert_file_name
(
name_buf
,
table_name
+
len
,
size
-
len
);
if
(
sub_part_ptr
)
{
sub_part_ptr
+=
4
;
xt_strcat
(
size
,
table_name
,
" - "
);
len
=
strlen
(
table_name
);
myxt_static_convert_file_name
(
sub_part_ptr
,
table_name
+
len
,
size
-
len
);
}
xt_strcat
(
size
,
table_name
,
")"
);
}
}
...
...
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