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
67d7871a
Commit
67d7871a
authored
Mar 29, 2007
by
iggy@alf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
25141 Partial
parent
bde1d63d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2757 additions
and
2 deletions
+2757
-2
mysql-test/include/partition.inc
mysql-test/include/partition.inc
+1402
-0
mysql-test/r/partition_windows.result
mysql-test/r/partition_windows.result
+1223
-0
mysql-test/t/partition_not_windows.test
mysql-test/t/partition_not_windows.test
+100
-0
mysql-test/t/partition_windows.test
mysql-test/t/partition_windows.test
+30
-0
sql/sql_table.cc
sql/sql_table.cc
+2
-2
No files found.
mysql-test/include/partition.inc
0 → 100644
View file @
67d7871a
This diff is collapsed.
Click to expand it.
mysql-test/r/partition_windows.result
0 → 100644
View file @
67d7871a
This diff is collapsed.
Click to expand it.
mysql-test/t/partition_not_windows.test
0 → 100644
View file @
67d7871a
# Non-windows specific partition tests.
--
source
include
/
not_windows
.
inc
--
source
include
/
partition
.
inc
# The previous partition.test contained the following note:
# This test is disabled on Windows due to BUG#19107
# All tests passed on Windows except the following which should be moved into
# include/partition.inc once the bug has been resolved.
#
# Bug 20770 Partitions: DATA DIRECTORY clause change in reorganize
# doesn't remove old directory
--
disable_query_log
--
exec
mkdir
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
||
true
eval
SET
@
data_dir
=
'DATA DIRECTORY = ''$MYSQLTEST_VARDIR/master-data/tmpdata'''
;
let
$data_directory
=
`select @data_dir`
;
--
exec
mkdir
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
||
true
eval
SET
@
inx_dir
=
'INDEX DIRECTORY = ''$MYSQLTEST_VARDIR/master-data/tmpinx'''
;
let
$inx_directory
=
`select @inx_dir`
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
create
table
t1
(
a
int
)
engine
myisam
partition
by
range
(
a
)
subpartition
by
hash
(
a
)
(
partition
p0
VALUES
LESS
THAN
(
1
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart00
,
SUBPARTITION
subpart01
));
--
echo
Checking
if
file
exists
before
alter
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
frm
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
par
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart00.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart00.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart01.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart01.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p0#SP#subpart00.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p0#SP#subpart01.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p0#SP#subpart00.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p0#SP#subpart01.MYI
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
ALTER
TABLE
t1
REORGANIZE
PARTITION
p0
INTO
(
partition
p1
VALUES
LESS
THAN
(
1
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart10
,
SUBPARTITION
subpart11
),
partition
p2
VALUES
LESS
THAN
(
2
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart20
,
SUBPARTITION
subpart21
));
--
echo
Checking
if
file
exists
after
alter
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
frm
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
par
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart10.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart10.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart11.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart11.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart20.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart20.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart21.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart21.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p1#SP#subpart10.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p1#SP#subpart11.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p2#SP#subpart20.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p2#SP#subpart21.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p1#SP#subpart10.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p1#SP#subpart11.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p2#SP#subpart20.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p2#SP#subpart21.MYI
drop
table
t1
;
--
exec
rmdir
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
||
true
--
exec
rmdir
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
||
true
# End Windows specific test failures.
# These tests contain non-Windows specific directory/file format.
#
# Bug 25141: Crash Server on Partitioning command
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
`example`
;
--
enable_warnings
--
disable_abort_on_error
CREATE
TABLE
`example`
(
`ID_EXAMPLE`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`DESCRIPTION`
varchar
(
30
)
NOT
NULL
,
`LEVEL`
smallint
(
5
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`ID_EXAMPLE`
)
)
ENGINE
=
MYISAM
PARTITION
BY
HASH
(
ID_EXAMPLE
)(
PARTITION
p0
DATA
DIRECTORY
=
'/build/5.1/data/partitiontest/p0Data'
,
PARTITION
p1
DATA
DIRECTORY
=
'/build/5.1/data/partitiontest/p1Data'
,
PARTITION
p2
DATA
DIRECTORY
=
'/build/5.1/data/partitiontest/p2Data'
,
PARTITION
p3
DATA
DIRECTORY
=
'/build/5.1/data/partitiontest/p3Data'
);
--
enable_abort_on_error
mysql-test/t/partition_windows.test
0 → 100644
View file @
67d7871a
# Windows-specific partition tests
--
source
include
/
windows
.
inc
--
source
include
/
partition
.
inc
# These tests contain Windows specific directory/file format.
#
# Bug 25141: Crash Server on Partitioning command
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
`example`
;
--
enable_warnings
--
disable_abort_on_error
CREATE
TABLE
`example`
(
`ID_EXAMPLE`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`DESCRIPTION`
varchar
(
30
)
NOT
NULL
,
`LEVEL`
smallint
(
5
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`ID_EXAMPLE`
)
)
ENGINE
=
MYISAM
PARTITION
BY
HASH
(
ID_EXAMPLE
)(
PARTITION
p0
DATA
DIRECTORY
=
'C:/build/5.1/data/partitiontest/p0Data'
,
PARTITION
p1
DATA
DIRECTORY
=
'C:/build/5.1/data/partitiontest/p1Data'
,
PARTITION
p2
DATA
DIRECTORY
=
'C:/build/5.1/data/partitiontest/p2Data'
,
PARTITION
p3
DATA
DIRECTORY
=
'C:/build/5.1/data/partitiontest/p3Data'
);
--
enable_abort_on_error
sql/sql_table.cc
View file @
67d7871a
...
...
@@ -182,8 +182,8 @@ uint build_table_filename(char *buff, size_t bufflen, const char *db,
VOID
(
tablename_to_filename
(
table_name
,
tbbuff
,
sizeof
(
tbbuff
)));
VOID
(
tablename_to_filename
(
db
,
dbbuff
,
sizeof
(
dbbuff
)));
length
=
strxnmov
(
buff
,
bufflen
,
mysql_data_home
,
"/"
,
dbbuff
,
"/"
,
tbbuff
,
ext
,
NullS
)
-
buff
;
length
=
strxnmov
(
buff
,
bufflen
,
mysql_data_home
,
FN_ROOTDIR
,
dbbuff
,
FN_ROOTDIR
,
tbbuff
,
ext
,
NullS
)
-
buff
;
DBUG_PRINT
(
"exit"
,
(
"buff: '%s'"
,
buff
));
DBUG_RETURN
(
length
);
}
...
...
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