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
29b7a0aa
Commit
29b7a0aa
authored
Oct 16, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed GLOBAL INDEX syntax, need to develop GLOBAL indexes before adding syntax for it
parent
975c1ff8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
40 deletions
+7
-40
mysql-test/r/partition_not_windows.result
mysql-test/r/partition_not_windows.result
+2
-2
mysql-test/r/partition_range.result
mysql-test/r/partition_range.result
+0
-5
mysql-test/r/partition_symlink.result
mysql-test/r/partition_symlink.result
+2
-2
mysql-test/t/partition_range.test
mysql-test/t/partition_range.test
+0
-6
sql/share/errmsg.txt
sql/share/errmsg.txt
+0
-2
sql/sql_lex.cc
sql/sql_lex.cc
+0
-1
sql/sql_lex.h
sql/sql_lex.h
+0
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-19
No files found.
mysql-test/r/partition_not_windows.result
View file @
29b7a0aa
...
...
@@ -24,8 +24,8 @@ data directory='/not/existing'
index directory='/not/existing'
);
Warnings:
Warning 161
8
<DATA DIRECTORY> option ignored
Warning 161
8
<INDEX DIRECTORY> option ignored
Warning 161
9
<DATA DIRECTORY> option ignored
Warning 161
9
<INDEX DIRECTORY> option ignored
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
...
...
mysql-test/r/partition_range.result
View file @
29b7a0aa
...
...
@@ -84,11 +84,6 @@ create table t1 (a int, b char(20))
partition by range(a)
(partition p0 values less than (column_list(1,"b")));
ERROR HY000: Inconsistency in usage of column lists for partitioning
create table t1 (a int, b char(20));
create global index inx on t1 (a,b)
partition by range (a)
(partition p0 values less than (1));
drop table t1;
create table t1 (a int, b char(20))
partition by range column_list(b)
(partition p0 values less than (column_list("b")));
...
...
mysql-test/r/partition_symlink.result
View file @
29b7a0aa
...
...
@@ -101,8 +101,8 @@ data directory='/not/existing'
index directory='/not/existing'
);
Warnings:
Warning 161
8
<DATA DIRECTORY> option ignored
Warning 161
8
<INDEX DIRECTORY> option ignored
Warning 161
9
<DATA DIRECTORY> option ignored
Warning 161
9
<INDEX DIRECTORY> option ignored
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
...
...
mysql-test/t/partition_range.test
View file @
29b7a0aa
...
...
@@ -74,12 +74,6 @@ create table t1 (a int, b char(20))
partition
by
range
(
a
)
(
partition
p0
values
less
than
(
column_list
(
1
,
"b"
)));
create
table
t1
(
a
int
,
b
char
(
20
));
create
global
index
inx
on
t1
(
a
,
b
)
partition
by
range
(
a
)
(
partition
p0
values
less
than
(
1
));
drop
table
t1
;
create
table
t1
(
a
int
,
b
char
(
20
))
partition
by
range
column_list
(
b
)
(
partition
p0
values
less
than
(
column_list
(
"b"
)));
...
...
sql/share/errmsg.txt
View file @
29b7a0aa
...
...
@@ -6182,8 +6182,6 @@ ER_TOO_LONG_FIELD_COMMENT
ER_FUNC_INEXISTENT_NAME_COLLISION 42000
eng "FUNCTION %s does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual"
ER_GLOBAL_PARTITION_INDEX_ERROR
eng "Partitioning of indexes only supported for global indexes"
ER_PARTITION_COLUMN_LIST_ERROR
eng "Inconsistency in usage of column lists for partitioning"
ER_WRONG_TYPE_COLUMN_VALUE_ERROR
...
...
sql/sql_lex.cc
View file @
29b7a0aa
...
...
@@ -323,7 +323,6 @@ void lex_start(THD *thd)
lex
->
select_lex
.
select_number
=
1
;
lex
->
length
=
0
;
lex
->
part_info
=
0
;
lex
->
global_flag
=
0
;
lex
->
select_lex
.
in_sum_expr
=
0
;
lex
->
select_lex
.
ftfunc_list_alloc
.
empty
();
lex
->
select_lex
.
ftfunc_list
=
&
lex
->
select_lex
.
ftfunc_list_alloc
;
...
...
sql/sql_lex.h
View file @
29b7a0aa
...
...
@@ -1565,9 +1565,6 @@ typedef struct st_lex : public Query_tables_list
/* Partition info structure filled in by PARTITION BY parse part */
partition_info
*
part_info
;
/* Flag to index a global index created */
bool
global_flag
;
/*
The definer of the object being created (view, trigger, stored routine).
I.e. the value of DEFINER clause.
...
...
sql/sql_yacc.yy
View file @
29b7a0aa
...
...
@@ -1157,7 +1157,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
opt_natural_language_mode opt_query_expansion
opt_ev_status opt_ev_on_completion ev_on_completion opt_ev_comment
ev_alter_on_schedule_completion opt_ev_rename_to opt_ev_sql_stmt
opt_global
%type <ulong_num>
ulong_num real_ulong_num merge_insert_types
...
...
@@ -1695,12 +1694,12 @@ create:
$5->table.str);
}
}
| CREATE opt_
global opt_
unique_or_fulltext INDEX_SYM ident key_alg ON
| CREATE opt_unique_or_fulltext INDEX_SYM ident key_alg ON
table_ident
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_CREATE_INDEX;
if (!lex->current_select->add_table_to_list(lex->thd, $
8
,
if (!lex->current_select->add_table_to_list(lex->thd, $
7
,
NULL,
TL_OPTION_UPDATING))
MYSQL_YYABORT;
...
...
@@ -1708,7 +1707,6 @@ create:
lex->alter_info.flags= ALTER_ADD_INDEX;
lex->col_list.empty();
lex->change=NullS;
lex->global_flag= $2;
}
'(' key_list ')' key_options
{
...
...
@@ -1719,22 +1717,13 @@ create:
my_parse_error(ER(ER_SYNTAX_ERROR));
MYSQL_YYABORT;
}
key= new Key($
3, $5
.str, &lex->key_create_info, 0,
key= new Key($
2, $4
.str, &lex->key_create_info, 0,
lex->col_list);
if (key == NULL)
MYSQL_YYABORT;
lex->alter_info.key_list.push_back(key);
lex->col_list.empty();
}
opt_partitioning
{
LEX *lex= Lex;
if (!lex->global_flag && lex->part_info)
{
my_error(ER_GLOBAL_PARTITION_INDEX_ERROR, MYF(0));
YYABORT;
}
}
| CREATE DATABASE opt_if_not_exists ident
{
Lex->create_info.default_table_charset= NULL;
...
...
@@ -4454,11 +4443,6 @@ opt_part_option:
{ Lex->part_info->curr_part_elem->part_comment= $3.str; }
;
opt_global:
/* empty */ { $$= FALSE;}
| GLOBAL_SYM { $$= TRUE; }
;
/*
End of partition parser part
*/
...
...
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