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
586ef705
Commit
586ef705
authored
Jun 11, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved merge conflicts
parent
e6f9d712
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
12 deletions
+29
-12
sql/field.cc
sql/field.cc
+1
-1
sql/field.h
sql/field.h
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+27
-10
No files found.
sql/field.cc
View file @
586ef705
...
...
@@ -8264,7 +8264,7 @@ Field *Field_bit::new_key_field(MEM_ROOT *root,
}
uint
Field_bit
::
is_equal
(
c
reate_field
*
new_field
)
uint
Field_bit
::
is_equal
(
C
reate_field
*
new_field
)
{
return
(
new_field
->
sql_type
==
real_type
()
&&
new_field
->
length
==
max_display_length
());
...
...
sql/field.h
View file @
586ef705
...
...
@@ -1563,7 +1563,7 @@ public:
bit_ptr
==
((
Field_bit
*
)
field
)
->
bit_ptr
&&
bit_ofs
==
((
Field_bit
*
)
field
)
->
bit_ofs
);
}
uint
is_equal
(
c
reate_field
*
new_field
);
uint
is_equal
(
C
reate_field
*
new_field
);
void
move_field_offset
(
my_ptrdiff_t
ptr_diff
)
{
Field
::
move_field_offset
(
ptr_diff
);
...
...
sql/sql_lex.h
View file @
586ef705
...
...
@@ -830,6 +830,13 @@ inline bool st_select_lex_unit::is_union ()
#define ALTER_REMOVE_PARTITIONING (1L << 25)
#define ALTER_FOREIGN_KEY (1L << 26)
enum
enum_alter_table_change_level
{
ALTER_TABLE_METADATA_ONLY
=
0
,
ALTER_TABLE_DATA_CHANGED
=
1
,
ALTER_TABLE_INDEX_CHANGED
=
2
};
/**
@brief Parsing data for CREATE or ALTER TABLE.
...
...
@@ -840,21 +847,28 @@ inline bool st_select_lex_unit::is_union ()
class
Alter_info
{
public:
List
<
Alter_drop
>
drop_list
;
List
<
Alter_column
>
alter_list
;
List
<
Key
>
key_list
;
List
<
Create_field
>
create_list
;
uint
flags
;
enum
enum_enable_or_disable
keys_onoff
;
enum
tablespace_op_type
tablespace_op
;
List
<
char
>
partition_names
;
uint
no_parts
;
List
<
Alter_drop
>
drop_list
;
List
<
Alter_column
>
alter_list
;
List
<
Key
>
key_list
;
List
<
Create_field
>
create_list
;
uint
flags
;
enum
enum_enable_or_disable
keys_onoff
;
enum
tablespace_op_type
tablespace_op
;
List
<
char
>
partition_names
;
uint
no_parts
;
enum_alter_table_change_level
change_level
;
Create_field
*
datetime_field
;
bool
error_if_not_empty
;
Alter_info
()
:
flags
(
0
),
keys_onoff
(
LEAVE_AS_IS
),
tablespace_op
(
NO_TABLESPACE_OP
),
no_parts
(
0
)
no_parts
(
0
),
change_level
(
ALTER_TABLE_METADATA_ONLY
),
datetime_field
(
NULL
),
error_if_not_empty
(
FALSE
)
{}
void
reset
()
...
...
@@ -868,6 +882,9 @@ public:
tablespace_op
=
NO_TABLESPACE_OP
;
no_parts
=
0
;
partition_names
.
empty
();
change_level
=
ALTER_TABLE_METADATA_ONLY
;
datetime_field
=
0
;
error_if_not_empty
=
FALSE
;
}
/**
Construct a copy of this object to be used for mysql_alter_table
...
...
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