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
e963b0d1
Commit
e963b0d1
authored
Nov 27, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16725 Add accessor methods for classes in item_timefunc.h
parent
2dd6cd5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sql/item_timefunc.h
sql/item_timefunc.h
+9
-0
No files found.
sql/item_timefunc.h
View file @
e963b0d1
...
...
@@ -1079,6 +1079,9 @@ class Item_char_typecast :public Item_str_func
uint
adjusted_length_with_warn
(
uint
length
);
void
check_truncation_with_warn
(
String
*
src
,
size_t
dstlen
);
void
fix_length_and_dec_internal
(
CHARSET_INFO
*
fromcs
);
public:
// Methods used by ColumnStore
uint
get_cast_length
()
const
{
return
cast_length
;
}
public:
Item_char_typecast
(
THD
*
thd
,
Item
*
a
,
uint
length_arg
,
CHARSET_INFO
*
cs_arg
)
:
Item_str_func
(
thd
,
a
),
cast_length
(
length_arg
),
cast_cs
(
cs_arg
),
...
...
@@ -1249,6 +1252,9 @@ class Item_func_timestamp :public Item_datetimefunc
class
Item_func_add_time
:
public
Item_handled_func
{
int
sign
;
public:
// Methods used by ColumnStore
int
get_sign
()
const
{
return
sign
;
}
public:
Item_func_add_time
(
THD
*
thd
,
Item
*
a
,
Item
*
b
,
bool
neg_arg
)
:
Item_handled_func
(
thd
,
a
,
b
),
sign
(
neg_arg
?
-
1
:
1
)
...
...
@@ -1334,6 +1340,9 @@ class Item_func_timestamp_diff :public Item_longlong_func
bool
check_arguments
()
const
{
return
check_argument_types_can_return_date
(
0
,
arg_count
);
}
const
interval_type
int_type
;
public:
// Methods used by ColumnStore
interval_type
get_int_type
()
const
{
return
int_type
;
};
public:
Item_func_timestamp_diff
(
THD
*
thd
,
Item
*
a
,
Item
*
b
,
interval_type
type_arg
)
:
Item_longlong_func
(
thd
,
a
,
b
),
int_type
(
type_arg
)
{}
...
...
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