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
45cfa420
Commit
45cfa420
authored
Mar 08, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #17497: Partitions: crash if add partition on temporary table
Temporary tables are no longer allowed to be partitioned.
parent
696c7677
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
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/share/errmsg.txt
sql/share/errmsg.txt
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+5
-0
No files found.
mysql-test/r/partition.result
View file @
45cfa420
...
...
@@ -422,4 +422,6 @@ partition_name partition_description table_rows
x123 11,12 1
x234 NULL,1 1
drop table t1;
create temporary table t1 (a int) partition by hash(a);
ERROR HY000: Cannot create temporary table with partitions
End of 5.1 tests
mysql-test/t/partition.test
View file @
45cfa420
...
...
@@ -540,4 +540,10 @@ select partition_name, partition_description, table_rows
from
information_schema
.
partitions
where
table_schema
=
'test'
;
drop
table
t1
;
#
# Bug #17497: Partitions: crash if add partition on temporary table
#
--
error
ER_PARTITION_NO_TEMPORARY
create
temporary
table
t1
(
a
int
)
partition
by
hash
(
a
);
--
echo
End
of
5.1
tests
sql/share/errmsg.txt
View file @
45cfa420
...
...
@@ -5820,4 +5820,5 @@ ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT
eng "Cannot change the binary logging format inside a stored function or trigger"
ER_NDB_CANT_SWITCH_BINLOG_FORMAT
eng "The NDB cluster engine does not support changing the binlog format on the fly yet"
ER_PARTITION_NO_TEMPORARY
eng "Cannot create temporary table with partitions"
sql/sql_table.cc
View file @
45cfa420
...
...
@@ -2073,6 +2073,11 @@ bool mysql_create_table_internal(THD *thd,
char
*
part_syntax_buf
;
uint
syntax_len
;
handlerton
*
engine_type
;
if
(
create_info
->
options
&
HA_LEX_CREATE_TMP_TABLE
)
{
my_error
(
ER_PARTITION_NO_TEMPORARY
,
MYF
(
0
));
goto
err
;
}
while
((
key
=
key_iterator
++
))
{
if
(
key
->
type
==
Key
::
FOREIGN_KEY
)
...
...
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