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
f2ccc595
Commit
f2ccc595
authored
Apr 15, 2017
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Derive Item_func_makedate from Item_datefunc rather than Item_temporal_func
parent
64e63131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/item_timefunc.h
sql/item_timefunc.h
+3
-3
No files found.
sql/item_timefunc.h
View file @
f2ccc595
...
@@ -597,6 +597,7 @@ class Item_datefunc :public Item_temporal_func
...
@@ -597,6 +597,7 @@ class Item_datefunc :public Item_temporal_func
public:
public:
Item_datefunc
(
THD
*
thd
)
:
Item_temporal_func
(
thd
)
{
}
Item_datefunc
(
THD
*
thd
)
:
Item_temporal_func
(
thd
)
{
}
Item_datefunc
(
THD
*
thd
,
Item
*
a
)
:
Item_temporal_func
(
thd
,
a
)
{
}
Item_datefunc
(
THD
*
thd
,
Item
*
a
)
:
Item_temporal_func
(
thd
,
a
)
{
}
Item_datefunc
(
THD
*
thd
,
Item
*
a
,
Item
*
b
)
:
Item_temporal_func
(
thd
,
a
,
b
)
{
}
enum_field_types
field_type
()
const
{
return
MYSQL_TYPE_DATE
;
}
enum_field_types
field_type
()
const
{
return
MYSQL_TYPE_DATE
;
}
};
};
...
@@ -1126,13 +1127,12 @@ class Item_datetime_typecast :public Item_temporal_typecast
...
@@ -1126,13 +1127,12 @@ class Item_datetime_typecast :public Item_temporal_typecast
};
};
class
Item_func_makedate
:
public
Item_
temporal_
func
class
Item_func_makedate
:
public
Item_
date
func
{
{
public:
public:
Item_func_makedate
(
THD
*
thd
,
Item
*
a
,
Item
*
b
)
:
Item_func_makedate
(
THD
*
thd
,
Item
*
a
,
Item
*
b
)
:
Item_
temporal_
func
(
thd
,
a
,
b
)
{}
Item_
date
func
(
thd
,
a
,
b
)
{}
const
char
*
func_name
()
const
{
return
"makedate"
;
}
const
char
*
func_name
()
const
{
return
"makedate"
;
}
enum_field_types
field_type
()
const
{
return
MYSQL_TYPE_DATE
;
}
bool
get_date
(
MYSQL_TIME
*
ltime
,
ulonglong
fuzzy_date
);
bool
get_date
(
MYSQL_TIME
*
ltime
,
ulonglong
fuzzy_date
);
Item
*
get_copy
(
THD
*
thd
,
MEM_ROOT
*
mem_root
)
Item
*
get_copy
(
THD
*
thd
,
MEM_ROOT
*
mem_root
)
{
return
get_item_copy
<
Item_func_makedate
>
(
thd
,
mem_root
,
this
);
}
{
return
get_item_copy
<
Item_func_makedate
>
(
thd
,
mem_root
,
this
);
}
...
...
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