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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6ffa4b9c
Commit
6ffa4b9c
authored
Apr 07, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/hf/work/26074/my51-26074
into mysql.com:/d2/hf/mrg/mysql-5.1-opt
parents
fa153792
aef55430
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
mysql-test/r/windows.result
mysql-test/r/windows.result
+15
-0
mysql-test/t/windows.test
mysql-test/t/windows.test
+21
-0
sql/ha_partition.cc
sql/ha_partition.cc
+2
-1
No files found.
mysql-test/r/windows.result
View file @
6ffa4b9c
...
@@ -26,3 +26,18 @@ ERROR HY000: No paths allowed for shared library
...
@@ -26,3 +26,18 @@ ERROR HY000: No paths allowed for shared library
execute abc;
execute abc;
ERROR HY000: No paths allowed for shared library
ERROR HY000: No paths allowed for shared library
deallocate prepare abc;
deallocate prepare abc;
CREATE TABLE t1 (
`pkid` int(11) NOT NULL AUTO_INCREMENT,
`SALES_DATE` date NOT NULL DEFAULT '0000-00-00',
KEY `pkid` (`pkid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
PARTITION BY RANGE (MONTH(SALES_DATE))
(
PARTITION p0 VALUES LESS THAN (2) ENGINE=INNODB
data DIRECTORY='c:/tmp/'
index DIRECTORY = 'c:/tmp/',
PARTITION p1 VALUES LESS THAN (3) ENGINE=INNODB
data DIRECTORY='c:/tmp/'
index DIRECTORY = 'c:/tmp/'
);
drop table t1;
mysql-test/t/windows.test
View file @
6ffa4b9c
# Windows-specific tests
# Windows-specific tests
--
source
include
/
windows
.
inc
--
source
include
/
windows
.
inc
--
source
include
/
have_innodb
.
inc
#
#
# Bug 9148: Denial of service
# Bug 9148: Denial of service
...
@@ -49,3 +50,23 @@ execute abc;
...
@@ -49,3 +50,23 @@ execute abc;
execute
abc
;
execute
abc
;
deallocate
prepare
abc
;
deallocate
prepare
abc
;
#
# Bug #26074 Mysql crash when creating partitions
#
CREATE
TABLE
t1
(
`pkid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`SALES_DATE`
date
NOT
NULL
DEFAULT
'0000-00-00'
,
KEY
`pkid`
(
`pkid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
PARTITION
BY
RANGE
(
MONTH
(
SALES_DATE
))
(
PARTITION
p0
VALUES
LESS
THAN
(
2
)
ENGINE
=
INNODB
data
DIRECTORY
=
'c:/tmp/'
index
DIRECTORY
=
'c:/tmp/'
,
PARTITION
p1
VALUES
LESS
THAN
(
3
)
ENGINE
=
INNODB
data
DIRECTORY
=
'c:/tmp/'
index
DIRECTORY
=
'c:/tmp/'
);
DROP
TABLE
t1
;
sql/ha_partition.cc
View file @
6ffa4b9c
...
@@ -1781,7 +1781,8 @@ int ha_partition::set_up_table_before_create(TABLE *table,
...
@@ -1781,7 +1781,8 @@ int ha_partition::set_up_table_before_create(TABLE *table,
}
}
table
->
s
->
max_rows
=
part_elem
->
part_max_rows
;
table
->
s
->
max_rows
=
part_elem
->
part_max_rows
;
table
->
s
->
min_rows
=
part_elem
->
part_min_rows
;
table
->
s
->
min_rows
=
part_elem
->
part_min_rows
;
partition_name
=
strrchr
(
partition_name_with_path
,
FN_LIBCHAR
);
/* Here we have unified path so should always look for '/', not FN_LIBCHAR */
partition_name
=
strrchr
(
partition_name_with_path
,
'/'
);
if
((
part_elem
->
index_file_name
&&
if
((
part_elem
->
index_file_name
&&
(
error
=
append_file_to_dir
(
thd
,
(
error
=
append_file_to_dir
(
thd
,
(
const
char
**
)
&
part_elem
->
index_file_name
,
(
const
char
**
)
&
part_elem
->
index_file_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