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
41d98408
Commit
41d98408
authored
Dec 15, 2016
by
kevg
Committed by
Aleksey Midenkov
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL: remove unneded return value
parent
e851c140
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
sql/field.cc
sql/field.cc
+3
-4
sql/field.h
sql/field.h
+4
-4
sql/table.cc
sql/table.cc
+1
-2
No files found.
sql/field.cc
View file @
41d98408
...
...
@@ -4356,12 +4356,11 @@ void Field_longlong::sql_type(String &res) const
add_zerofill_and_unsigned
(
res
);
}
bool
Field_longlong
::
set_max
()
void
Field_longlong
::
set_max
()
{
ASSERT_COLUMN_MARKED_FOR_WRITE_OR_COMPUTED
;
set_notnull
();
int8store
(
ptr
,
unsigned_flag
?
ULONGLONG_MAX
:
LONGLONG_MAX
);
return
FALSE
;
}
bool
Field_longlong
::
is_max
()
...
...
@@ -5444,7 +5443,7 @@ void Field_timestampf::store_TIME(my_time_t timestamp, ulong sec_part)
my_timestamp_to_binary
(
&
tm
,
ptr
,
dec
);
}
bool
Field_timestampf
::
set_max
()
void
Field_timestampf
::
set_max
()
{
DBUG_ENTER
(
"Field_timestampf::set_max"
);
ASSERT_COLUMN_MARKED_FOR_WRITE_OR_COMPUTED
;
...
...
@@ -5453,7 +5452,7 @@ bool Field_timestampf::set_max()
mi_int4store
(
ptr
,
TIMESTAMP_MAX_VALUE
);
memset
(
ptr
+
4
,
0x0
,
value_length
()
-
4
);
DBUG_
RETURN
(
FALSE
)
;
DBUG_
VOID_RETURN
;
}
bool
Field_timestampf
::
is_max
()
...
...
sql/field.h
View file @
41d98408
...
...
@@ -677,8 +677,8 @@ class Field: public Value_source
/**
Used by System Versioning.
*/
virtual
bool
set_max
()
{
DBUG_ASSERT
(
0
);
return
false
;
}
virtual
void
set_max
()
{
DBUG_ASSERT
(
0
);
}
virtual
bool
is_max
()
{
DBUG_ASSERT
(
0
);
return
false
;
}
...
...
@@ -2129,7 +2129,7 @@ class Field_longlong :public Field_num {
return
unpack_int64
(
to
,
from
,
from_end
);
}
bool
set_max
();
void
set_max
();
bool
is_max
();
};
...
...
@@ -2540,7 +2540,7 @@ class Field_timestampf :public Field_timestamp_with_dec {
{
return
memcmp
(
a_ptr
,
b_ptr
,
pack_length
());
}
bool
set_max
();
void
set_max
();
bool
is_max
();
void
store_TIME
(
my_time_t
timestamp
,
ulong
sec_part
);
my_time_t
get_timestamp
(
const
uchar
*
pos
=
NULL
,
ulong
*
sec_part
=
NULL
)
const
;
...
...
sql/table.cc
View file @
41d98408
...
...
@@ -7602,8 +7602,7 @@ void TABLE::vers_update_fields()
if
(
vers_start_field
()
->
set_time
())
DBUG_ASSERT
(
0
);
if
(
vers_end_field
()
->
set_max
())
DBUG_ASSERT
(
0
);
vers_end_field
()
->
set_max
();
DBUG_VOID_RETURN
;
}
...
...
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