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
c9f0792c
Commit
c9f0792c
authored
Sep 20, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'const' to row_pack_length
(pre fts).
parent
e5746665
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
sql/field.h
sql/field.h
+13
-13
No files found.
sql/field.h
View file @
c9f0792c
...
@@ -398,7 +398,7 @@ public:
...
@@ -398,7 +398,7 @@ public:
DBUG_ENTER
(
"Field::pack_length_from_metadata"
);
DBUG_ENTER
(
"Field::pack_length_from_metadata"
);
DBUG_RETURN
(
field_metadata
);
DBUG_RETURN
(
field_metadata
);
}
}
virtual
uint
row_pack_length
()
{
return
0
;
}
virtual
uint
row_pack_length
()
const
{
return
0
;
}
virtual
int
save_field_metadata
(
uchar
*
first_byte
)
virtual
int
save_field_metadata
(
uchar
*
first_byte
)
{
return
do_save_field_metadata
(
first_byte
);
}
{
return
do_save_field_metadata
(
first_byte
);
}
...
@@ -1005,7 +1005,7 @@ public:
...
@@ -1005,7 +1005,7 @@ public:
int
store_decimal
(
const
my_decimal
*
);
int
store_decimal
(
const
my_decimal
*
);
my_decimal
*
val_decimal
(
my_decimal
*
);
my_decimal
*
val_decimal
(
my_decimal
*
);
uint
is_equal
(
Create_field
*
new_field
);
uint
is_equal
(
Create_field
*
new_field
);
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
uint32
pack_length_from_metadata
(
uint
field_metadata
)
{
uint32
pack_length_from_metadata
(
uint
field_metadata
)
{
uint32
length
=
pack_length
();
uint32
length
=
pack_length
();
DBUG_PRINT
(
"result"
,
(
"pack_length_from_metadata(%d): %u"
,
DBUG_PRINT
(
"result"
,
(
"pack_length_from_metadata(%d): %u"
,
...
@@ -1181,7 +1181,7 @@ public:
...
@@ -1181,7 +1181,7 @@ public:
uint
size_of
()
const
{
return
sizeof
(
*
this
);
}
uint
size_of
()
const
{
return
sizeof
(
*
this
);
}
uint32
pack_length
()
const
{
return
(
uint32
)
bin_size
;
}
uint32
pack_length
()
const
{
return
(
uint32
)
bin_size
;
}
uint
pack_length_from_metadata
(
uint
field_metadata
);
uint
pack_length_from_metadata
(
uint
field_metadata
);
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
bool
compatible_field_size
(
uint
field_metadata
,
Relay_log_info
*
rli
,
bool
compatible_field_size
(
uint
field_metadata
,
Relay_log_info
*
rli
,
uint16
mflags
,
int
*
order_var
);
uint16
mflags
,
int
*
order_var
);
uint
is_equal
(
Create_field
*
new_field
);
uint
is_equal
(
Create_field
*
new_field
);
...
@@ -1430,7 +1430,7 @@ public:
...
@@ -1430,7 +1430,7 @@ public:
int
cmp
(
const
uchar
*
,
const
uchar
*
);
int
cmp
(
const
uchar
*
,
const
uchar
*
);
void
sort_string
(
uchar
*
buff
,
uint
length
);
void
sort_string
(
uchar
*
buff
,
uint
length
);
uint32
pack_length
()
const
{
return
sizeof
(
float
);
}
uint32
pack_length
()
const
{
return
sizeof
(
float
);
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
void
sql_type
(
String
&
str
)
const
;
void
sql_type
(
String
&
str
)
const
;
private:
private:
int
do_save_field_metadata
(
uchar
*
first_byte
);
int
do_save_field_metadata
(
uchar
*
first_byte
);
...
@@ -1470,7 +1470,7 @@ public:
...
@@ -1470,7 +1470,7 @@ public:
int
cmp
(
const
uchar
*
,
const
uchar
*
);
int
cmp
(
const
uchar
*
,
const
uchar
*
);
void
sort_string
(
uchar
*
buff
,
uint
length
);
void
sort_string
(
uchar
*
buff
,
uint
length
);
uint32
pack_length
()
const
{
return
sizeof
(
double
);
}
uint32
pack_length
()
const
{
return
sizeof
(
double
);
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
void
sql_type
(
String
&
str
)
const
;
void
sql_type
(
String
&
str
)
const
;
private:
private:
int
do_save_field_metadata
(
uchar
*
first_byte
);
int
do_save_field_metadata
(
uchar
*
first_byte
);
...
@@ -1724,7 +1724,7 @@ public:
...
@@ -1724,7 +1724,7 @@ public:
{
{
return
my_timestamp_binary_length
(
dec
);
return
my_timestamp_binary_length
(
dec
);
}
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
uint
pack_length_from_metadata
(
uint
field_metadata
)
uint
pack_length_from_metadata
(
uint
field_metadata
)
{
{
DBUG_ENTER
(
"Field_timestampf::pack_length_from_metadata"
);
DBUG_ENTER
(
"Field_timestampf::pack_length_from_metadata"
);
...
@@ -1932,7 +1932,7 @@ public:
...
@@ -1932,7 +1932,7 @@ public:
{
{
return
my_time_binary_length
(
dec
);
return
my_time_binary_length
(
dec
);
}
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
uint
pack_length_from_metadata
(
uint
field_metadata
)
uint
pack_length_from_metadata
(
uint
field_metadata
)
{
{
DBUG_ENTER
(
"Field_timef::pack_length_from_metadata"
);
DBUG_ENTER
(
"Field_timef::pack_length_from_metadata"
);
...
@@ -2092,7 +2092,7 @@ public:
...
@@ -2092,7 +2092,7 @@ public:
{
{
return
my_datetime_binary_length
(
dec
);
return
my_datetime_binary_length
(
dec
);
}
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
uint
pack_length_from_metadata
(
uint
field_metadata
)
uint
pack_length_from_metadata
(
uint
field_metadata
)
{
{
DBUG_ENTER
(
"Field_datetimef::pack_length_from_metadata"
);
DBUG_ENTER
(
"Field_datetimef::pack_length_from_metadata"
);
...
@@ -2207,7 +2207,7 @@ public:
...
@@ -2207,7 +2207,7 @@ public:
}
}
bool
compatible_field_size
(
uint
field_metadata
,
Relay_log_info
*
rli
,
bool
compatible_field_size
(
uint
field_metadata
,
Relay_log_info
*
rli
,
uint16
mflags
,
int
*
order_var
);
uint16
mflags
,
int
*
order_var
);
uint
row_pack_length
()
{
return
field_length
;
}
uint
row_pack_length
()
const
{
return
field_length
;
}
int
pack_cmp
(
const
uchar
*
a
,
const
uchar
*
b
,
uint
key_length
,
int
pack_cmp
(
const
uchar
*
a
,
const
uchar
*
b
,
uint
key_length
,
bool
insert_or_update
);
bool
insert_or_update
);
int
pack_cmp
(
const
uchar
*
b
,
uint
key_length
,
bool
insert_or_update
);
int
pack_cmp
(
const
uchar
*
b
,
uint
key_length
,
bool
insert_or_update
);
...
@@ -2256,7 +2256,7 @@ public:
...
@@ -2256,7 +2256,7 @@ public:
enum_field_types
type
()
const
{
return
MYSQL_TYPE_VARCHAR
;
}
enum_field_types
type
()
const
{
return
MYSQL_TYPE_VARCHAR
;
}
enum
ha_base_keytype
key_type
()
const
;
enum
ha_base_keytype
key_type
()
const
;
uint
row_pack_length
()
{
return
field_length
;
}
uint
row_pack_length
()
const
{
return
field_length
;
}
bool
zero_pack
()
const
{
return
0
;
}
bool
zero_pack
()
const
{
return
0
;
}
int
reset
(
void
)
{
bzero
(
ptr
,
field_length
+
length_bytes
);
return
0
;
}
int
reset
(
void
)
{
bzero
(
ptr
,
field_length
+
length_bytes
);
return
0
;
}
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
+
length_bytes
;
}
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
+
length_bytes
;
}
...
@@ -2386,7 +2386,7 @@ public:
...
@@ -2386,7 +2386,7 @@ public:
*/
*/
uint32
pack_length_no_ptr
()
const
uint32
pack_length_no_ptr
()
const
{
return
(
uint32
)
(
packlength
);
}
{
return
(
uint32
)
(
packlength
);
}
uint
row_pack_length
()
{
return
pack_length_no_ptr
();
}
uint
row_pack_length
()
const
{
return
pack_length_no_ptr
();
}
uint32
sort_length
()
const
;
uint32
sort_length
()
const
;
uint32
value_length
()
{
return
get_length
();
}
uint32
value_length
()
{
return
get_length
();
}
virtual
uint32
max_data_length
()
const
virtual
uint32
max_data_length
()
const
...
@@ -2551,7 +2551,7 @@ public:
...
@@ -2551,7 +2551,7 @@ public:
enum_field_types
real_type
()
const
{
return
MYSQL_TYPE_ENUM
;
}
enum_field_types
real_type
()
const
{
return
MYSQL_TYPE_ENUM
;
}
uint
pack_length_from_metadata
(
uint
field_metadata
)
uint
pack_length_from_metadata
(
uint
field_metadata
)
{
return
(
field_metadata
&
0x00ff
);
}
{
return
(
field_metadata
&
0x00ff
);
}
uint
row_pack_length
()
{
return
pack_length
();
}
uint
row_pack_length
()
const
{
return
pack_length
();
}
virtual
bool
zero_pack
()
const
{
return
0
;
}
virtual
bool
zero_pack
()
const
{
return
0
;
}
bool
optimize_range
(
uint
idx
,
uint
part
)
{
return
0
;
}
bool
optimize_range
(
uint
idx
,
uint
part
)
{
return
0
;
}
bool
eq_def
(
Field
*
field
);
bool
eq_def
(
Field
*
field
);
...
@@ -2702,7 +2702,7 @@ public:
...
@@ -2702,7 +2702,7 @@ public:
uint32
pack_length
()
const
{
return
(
uint32
)
(
field_length
+
7
)
/
8
;
}
uint32
pack_length
()
const
{
return
(
uint32
)
(
field_length
+
7
)
/
8
;
}
uint32
pack_length_in_rec
()
const
{
return
bytes_in_rec
;
}
uint32
pack_length_in_rec
()
const
{
return
bytes_in_rec
;
}
uint
pack_length_from_metadata
(
uint
field_metadata
);
uint
pack_length_from_metadata
(
uint
field_metadata
);
uint
row_pack_length
()
uint
row_pack_length
()
const
{
return
(
bytes_in_rec
+
((
bit_len
>
0
)
?
1
:
0
));
}
{
return
(
bytes_in_rec
+
((
bit_len
>
0
)
?
1
:
0
));
}
bool
compatible_field_size
(
uint
metadata
,
Relay_log_info
*
rli
,
bool
compatible_field_size
(
uint
metadata
,
Relay_log_info
*
rli
,
uint16
mflags
,
int
*
order_var
);
uint16
mflags
,
int
*
order_var
);
...
...
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