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
1950e324
Commit
1950e324
authored
Oct 04, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20706: Add missing override qualifiers
parent
57ce0bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
55 deletions
+64
-55
sql/sql_type.h
sql/sql_type.h
+64
-55
No files found.
sql/sql_type.h
View file @
1950e324
...
...
@@ -4497,33 +4497,35 @@ class Type_handler_real_result: public Type_handler_numeric
class
Type_handler_decimal_result
:
public
Type_handler_numeric
{
public:
protocol_send_type_t
protocol_send_type
()
const
protocol_send_type_t
protocol_send_type
()
const
override
{
return
PROTOCOL_SEND_STRING
;
}
Item_result
result_type
()
const
{
return
DECIMAL_RESULT
;
}
Item_result
cmp_type
()
const
{
return
DECIMAL_RESULT
;
}
enum_dynamic_column_type
dyncol_type
(
const
Type_all_attributes
*
attr
)
const
Item_result
result_type
()
const
override
{
return
DECIMAL_RESULT
;
}
Item_result
cmp_type
()
const
override
{
return
DECIMAL_RESULT
;
}
enum_dynamic_column_type
dyncol_type
(
const
Type_all_attributes
*
)
const
override
{
return
DYN_COL_DECIMAL
;
}
virtual
~
Type_handler_decimal_result
()
{};
const
Type_handler
*
type_handler_for_comparison
()
const
;
int
stored_field_cmp_to_item
(
THD
*
thd
,
Field
*
field
,
Item
*
item
)
const
const
Type_handler
*
type_handler_for_comparison
()
const
override
;
int
stored_field_cmp_to_item
(
THD
*
,
Field
*
field
,
Item
*
item
)
const
override
{
VDec
item_val
(
item
);
return
item_val
.
is_null
()
?
0
:
my_decimal
(
field
).
cmp
(
item_val
.
ptr
());
}
bool
subquery_type_allows_materialization
(
const
Item
*
inner
,
const
Item
*
outer
)
const
;
const
Item
*
outer
)
const
override
;
Field
*
make_schema_field
(
MEM_ROOT
*
root
,
TABLE
*
table
,
const
Record_addr
&
addr
,
const
ST_FIELD_INFO
&
def
,
bool
show_field
)
const
;
Field
*
make_num_distinct_aggregator_field
(
MEM_ROOT
*
,
const
Item
*
)
const
;
bool
show_field
)
const
override
;
Field
*
make_num_distinct_aggregator_field
(
MEM_ROOT
*
,
const
Item
*
)
const
override
;
void
make_sort_key
(
uchar
*
to
,
Item
*
item
,
const
SORT_FIELD_ATTR
*
sort_field
,
Sort_param
*
param
)
const
;
Sort_param
*
param
)
const
override
;
void
Column_definition_attributes_frm_pack
(
const
Column_definition_attributes
*
at
,
uchar
*
buff
)
const
override
;
...
...
@@ -4535,85 +4537,92 @@ class Type_handler_decimal_result: public Type_handler_numeric
const
override
;
void
sortlength
(
THD
*
thd
,
const
Type_std_attributes
*
item
,
SORT_FIELD_ATTR
*
attr
)
const
;
uint32
max_display_length
(
const
Item
*
item
)
const
;
SORT_FIELD_ATTR
*
attr
)
const
override
;
uint32
max_display_length
(
const
Item
*
item
)
const
override
;
Item
*
create_typecast_item
(
THD
*
thd
,
Item
*
item
,
const
Type_cast_attributes
&
attr
)
const
;
const
Type_cast_attributes
&
attr
)
const
override
;
bool
Item_const_eq
(
const
Item_const
*
a
,
const
Item_const
*
b
,
bool
binary_cmp
)
const
;
bool
binary_cmp
)
const
override
;
bool
Item_eq_value
(
THD
*
thd
,
const
Type_cmp_attributes
*
attr
,
Item
*
a
,
Item
*
b
)
const
Item
*
a
,
Item
*
b
)
const
override
{
VDec
va
(
a
),
vb
(
b
);
return
va
.
ptr
()
&&
vb
.
ptr
()
&&
!
va
.
cmp
(
vb
);
}
uint
Item_decimal_precision
(
const
Item
*
item
)
const
;
bool
Item_save_in_value
(
THD
*
thd
,
Item
*
item
,
st_value
*
value
)
const
;
uint
Item_decimal_precision
(
const
Item
*
item
)
const
override
;
bool
Item_save_in_value
(
THD
*
thd
,
Item
*
item
,
st_value
*
value
)
const
override
;
void
Item_param_set_param_func
(
Item_param
*
param
,
uchar
**
pos
,
ulong
len
)
const
;
uchar
**
pos
,
ulong
len
)
const
override
;
bool
Item_param_set_from_value
(
THD
*
thd
,
Item_param
*
param
,
const
Type_all_attributes
*
attr
,
const
st_value
*
value
)
const
;
bool
Item_send
(
Item
*
item
,
Protocol
*
protocol
,
st_value
*
buf
)
const
const
st_value
*
value
)
const
override
;
bool
Item_send
(
Item
*
item
,
Protocol
*
protocol
,
st_value
*
buf
)
const
override
{
return
Item_send_str
(
item
,
protocol
,
buf
);
}
void
Item_update_null_value
(
Item
*
item
)
const
;
int
Item_save_in_field
(
Item
*
item
,
Field
*
field
,
bool
no_conversions
)
const
;
Item
*
make_const_item_for_comparison
(
THD
*
,
Item
*
src
,
const
Item
*
cmp
)
const
;
Item_cache
*
Item_get_cache
(
THD
*
thd
,
const
Item
*
item
)
const
;
bool
set_comparator_func
(
Arg_comparator
*
cmp
)
const
;
void
Item_update_null_value
(
Item
*
item
)
const
override
;
int
Item_save_in_field
(
Item
*
item
,
Field
*
field
,
bool
no_conversions
)
const
override
;
Item
*
make_const_item_for_comparison
(
THD
*
,
Item
*
src
,
const
Item
*
cmp
)
const
override
;
Item_cache
*
Item_get_cache
(
THD
*
thd
,
const
Item
*
item
)
const
override
;
bool
set_comparator_func
(
Arg_comparator
*
cmp
)
const
override
;
bool
Item_hybrid_func_fix_attributes
(
THD
*
thd
,
const
char
*
name
,
Type_handler_hybrid_field_type
*
,
Type_all_attributes
*
atrr
,
Item
**
items
,
uint
nitems
)
const
;
bool
Item_sum_hybrid_fix_length_and_dec
(
Item_sum_hybrid
*
func
)
const
;
bool
Item_sum_sum_fix_length_and_dec
(
Item_sum_sum
*
)
const
;
bool
Item_sum_avg_fix_length_and_dec
(
Item_sum_avg
*
)
const
;
bool
Item_sum_variance_fix_length_and_dec
(
Item_sum_variance
*
)
const
;
bool
Item_val_bool
(
Item
*
item
)
const
Item
**
items
,
uint
nitems
)
const
override
;
bool
Item_sum_hybrid_fix_length_and_dec
(
Item_sum_hybrid
*
)
const
override
;
bool
Item_sum_sum_fix_length_and_dec
(
Item_sum_sum
*
)
const
override
;
bool
Item_sum_avg_fix_length_and_dec
(
Item_sum_avg
*
)
const
override
;
bool
Item_sum_variance_fix_length_and_dec
(
Item_sum_variance
*
)
const
override
;
bool
Item_val_bool
(
Item
*
item
)
const
override
{
return
VDec
(
item
).
to_bool
();
}
void
Item_get_date
(
THD
*
thd
,
Item
*
item
,
Temporal
::
Warn
*
warn
,
MYSQL_TIME
*
ltime
,
date_mode_t
fuzzydate
)
const
;
longlong
Item_val_int_signed_typecast
(
Item
*
item
)
const
;
longlong
Item_val_int_unsigned_typecast
(
Item
*
item
)
const
MYSQL_TIME
*
ltime
,
date_mode_t
fuzzydate
)
const
override
;
longlong
Item_val_int_signed_typecast
(
Item
*
item
)
const
override
;
longlong
Item_val_int_unsigned_typecast
(
Item
*
item
)
const
override
{
return
VDec
(
item
).
to_longlong
(
true
);
}
String
*
Item_func_hex_val_str_ascii
(
Item_func_hex
*
item
,
String
*
str
)
const
;
String
*
Item_func_hex_val_str_ascii
(
Item_func_hex
*
item
,
String
*
str
)
const
override
;
String
*
Item_func_hybrid_field_type_val_str
(
Item_func_hybrid_field_type
*
,
String
*
)
const
;
String
*
)
const
override
;
double
Item_func_hybrid_field_type_val_real
(
Item_func_hybrid_field_type
*
)
const
;
const
override
;
longlong
Item_func_hybrid_field_type_val_int
(
Item_func_hybrid_field_type
*
)
const
;
const
override
;
my_decimal
*
Item_func_hybrid_field_type_val_decimal
(
Item_func_hybrid_field_type
*
,
my_decimal
*
)
const
;
my_decimal
*
)
const
override
;
void
Item_func_hybrid_field_type_get_date
(
THD
*
,
Item_func_hybrid_field_type
*
,
Temporal
::
Warn
*
,
MYSQL_TIME
*
,
date_mode_t
fuzzydate
)
const
;
String
*
Item_func_min_max_val_str
(
Item_func_min_max
*
,
String
*
)
const
;
longlong
Item_func_between_val_int
(
Item_func_between
*
func
)
const
;
cmp_item
*
make_cmp_item
(
THD
*
thd
,
CHARSET_INFO
*
cs
)
const
;
in_vector
*
make_in_vector
(
THD
*
,
const
Item_func_in
*
,
uint
nargs
)
const
;
bool
Item_func_in_fix_comparator_compatible_types
(
THD
*
thd
,
Item_func_in
*
)
const
;
bool
Item_func_round_fix_length_and_dec
(
Item_func_round
*
)
const
;
bool
Item_func_int_val_fix_length_and_dec
(
Item_func_int_val
*
)
const
;
bool
Item_func_abs_fix_length_and_dec
(
Item_func_abs
*
)
const
;
bool
Item_func_neg_fix_length_and_dec
(
Item_func_neg
*
)
const
;
bool
Item_func_plus_fix_length_and_dec
(
Item_func_plus
*
)
const
;
bool
Item_func_minus_fix_length_and_dec
(
Item_func_minus
*
)
const
;
bool
Item_func_mul_fix_length_and_dec
(
Item_func_mul
*
)
const
;
bool
Item_func_div_fix_length_and_dec
(
Item_func_div
*
)
const
;
bool
Item_func_mod_fix_length_and_dec
(
Item_func_mod
*
)
const
;
date_mode_t
fuzzydate
)
const
override
;
String
*
Item_func_min_max_val_str
(
Item_func_min_max
*
,
String
*
)
const
override
;
longlong
Item_func_between_val_int
(
Item_func_between
*
func
)
const
override
;
cmp_item
*
make_cmp_item
(
THD
*
thd
,
CHARSET_INFO
*
cs
)
const
override
;
in_vector
*
make_in_vector
(
THD
*
,
const
Item_func_in
*
,
uint
nargs
)
const
override
;
bool
Item_func_in_fix_comparator_compatible_types
(
THD
*
thd
,
Item_func_in
*
)
const
override
;
bool
Item_func_round_fix_length_and_dec
(
Item_func_round
*
)
const
override
;
bool
Item_func_int_val_fix_length_and_dec
(
Item_func_int_val
*
)
const
override
;
bool
Item_func_abs_fix_length_and_dec
(
Item_func_abs
*
)
const
override
;
bool
Item_func_neg_fix_length_and_dec
(
Item_func_neg
*
)
const
override
;
bool
Item_func_plus_fix_length_and_dec
(
Item_func_plus
*
)
const
override
;
bool
Item_func_minus_fix_length_and_dec
(
Item_func_minus
*
)
const
override
;
bool
Item_func_mul_fix_length_and_dec
(
Item_func_mul
*
)
const
override
;
bool
Item_func_div_fix_length_and_dec
(
Item_func_div
*
)
const
override
;
bool
Item_func_mod_fix_length_and_dec
(
Item_func_mod
*
)
const
override
;
};
...
...
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