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
820731c6
Commit
820731c6
authored
Mar 20, 2006
by
gluh@eagle.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#15336 Partitions: crash if create table as select
added HA_EXTRA_WRITE_CACHE case to ha_partition::extra()
parent
c0420a5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
mysql-test/r/partition.result
mysql-test/r/partition.result
+2
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+6
-0
sql/ha_partition.cc
sql/ha_partition.cc
+1
-0
No files found.
mysql-test/r/partition.result
View file @
820731c6
...
@@ -562,4 +562,6 @@ partition by list (case when s1 > 'cz' then 1 else 2 end)
...
@@ -562,4 +562,6 @@ partition by list (case when s1 > 'cz' then 1 else 2 end)
(partition p1 values in (1),
(partition p1 values in (1),
partition p2 values in (2));
partition p2 values in (2));
drop table t1;
drop table t1;
create table t1 (f1 int) partition by hash (f1) as select 1;
drop table t1;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/partition.test
View file @
820731c6
...
@@ -723,4 +723,10 @@ partition by list (case when s1 > 'cz' then 1 else 2 end)
...
@@ -723,4 +723,10 @@ partition by list (case when s1 > 'cz' then 1 else 2 end)
partition
p2
values
in
(
2
));
partition
p2
values
in
(
2
));
drop
table
t1
;
drop
table
t1
;
#
# Bug#15336 Partitions: crash if create table as select
#
create
table
t1
(
f1
int
)
partition
by
hash
(
f1
)
as
select
1
;
drop
table
t1
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/ha_partition.cc
View file @
820731c6
...
@@ -4703,6 +4703,7 @@ int ha_partition::extra(enum ha_extra_function operation)
...
@@ -4703,6 +4703,7 @@ int ha_partition::extra(enum ha_extra_function operation)
break
;
break
;
}
}
case
HA_EXTRA_NO_CACHE
:
case
HA_EXTRA_NO_CACHE
:
case
HA_EXTRA_WRITE_CACHE
:
{
{
m_extra_cache
=
FALSE
;
m_extra_cache
=
FALSE
;
m_extra_cache_size
=
0
;
m_extra_cache_size
=
0
;
...
...
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