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
eed95688
Commit
eed95688
authored
Mar 09, 2006
by
mikael@zim.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#17947: Crash when REBUILD PARTITION syntax error
parent
696c7677
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+6
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+12
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/r/partition.result
View file @
eed95688
...
@@ -422,4 +422,10 @@ partition_name partition_description table_rows
...
@@ -422,4 +422,10 @@ partition_name partition_description table_rows
x123 11,12 1
x123 11,12 1
x234 NULL,1 1
x234 NULL,1 1
drop table t1;
drop table t1;
create table t1 (a int)
partition by list (a)
(partition p0 values in (1));
alter table t1 rebuild partition;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
drop table t1;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/partition.test
View file @
eed95688
...
@@ -540,4 +540,16 @@ select partition_name, partition_description, table_rows
...
@@ -540,4 +540,16 @@ select partition_name, partition_description, table_rows
from
information_schema
.
partitions
where
table_schema
=
'test'
;
from
information_schema
.
partitions
where
table_schema
=
'test'
;
drop
table
t1
;
drop
table
t1
;
#
# BUG 17947 Crash with REBUILD PARTITION
#
create
table
t1
(
a
int
)
partition
by
list
(
a
)
(
partition
p0
values
in
(
1
));
--
error
1064
alter
table
t1
rebuild
partition
;
drop
table
t1
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/sql_yacc.yy
View file @
eed95688
...
@@ -5024,7 +5024,7 @@ alter_commands:
...
@@ -5024,7 +5024,7 @@ alter_commands:
;
;
all_or_alt_part_name_list:
all_or_alt_part_name_list:
|
ALL
ALL
{
{
Lex->alter_info.flags|= ALTER_ALL_PARTITION;
Lex->alter_info.flags|= ALTER_ALL_PARTITION;
}
}
...
...
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