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
7baff9f6
Commit
7baff9f6
authored
Mar 17, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix extension_based_table_discovery for partitioned tables
typo. the code was not matching the comment
parent
8b9432ff
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
mysql-test/suite/archive/partition_archive.result
mysql-test/suite/archive/partition_archive.result
+6
-0
mysql-test/suite/archive/partition_archive.test
mysql-test/suite/archive/partition_archive.test
+7
-0
sql/discover.cc
sql/discover.cc
+1
-1
No files found.
mysql-test/suite/archive/partition_archive.result
View file @
7baff9f6
...
@@ -153,3 +153,9 @@ t1 CREATE TABLE `t1` (
...
@@ -153,3 +153,9 @@ t1 CREATE TABLE `t1` (
PARTITIONS 5 */
PARTITIONS 5 */
#Cleanup.
#Cleanup.
DROP TABLE t1;
DROP TABLE t1;
create database mysqltest1;
create table mysqltest1.t1 (a int not null, b int not null) engine=archive
partition by list(a) subpartition by hash(b)
(partition p1 values in (1),
partition p2 values in (2));
drop database mysqltest1;
mysql-test/suite/archive/partition_archive.test
View file @
7baff9f6
...
@@ -147,3 +147,10 @@ SHOW CREATE TABLE t1;
...
@@ -147,3 +147,10 @@ SHOW CREATE TABLE t1;
--
echo
#Cleanup.
--
echo
#Cleanup.
DROP
TABLE
t1
;
DROP
TABLE
t1
;
create
database
mysqltest1
;
create
table
mysqltest1
.
t1
(
a
int
not
null
,
b
int
not
null
)
engine
=
archive
partition
by
list
(
a
)
subpartition
by
hash
(
b
)
(
partition
p1
values
in
(
1
),
partition
p2
values
in
(
2
));
drop
database
mysqltest1
;
sql/discover.cc
View file @
7baff9f6
...
@@ -199,7 +199,7 @@ int extension_based_table_discovery(MY_DIR *dirp, const char *ext_meta,
...
@@ -199,7 +199,7 @@ int extension_based_table_discovery(MY_DIR *dirp, const char *ext_meta,
end
=
cur
+
dirp
->
number_of_files
;
end
=
cur
+
dirp
->
number_of_files
;
while
(
cur
<
end
)
while
(
cur
<
end
)
{
{
char
*
octothorp
=
str
r
chr
(
cur
->
name
+
1
,
'#'
);
char
*
octothorp
=
strchr
(
cur
->
name
+
1
,
'#'
);
char
*
ext
=
strchr
(
octothorp
?
octothorp
:
cur
->
name
,
FN_EXTCHAR
);
char
*
ext
=
strchr
(
octothorp
?
octothorp
:
cur
->
name
,
FN_EXTCHAR
);
if
(
ext
)
if
(
ext
)
...
...
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