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
1a463305
Commit
1a463305
authored
May 02, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement Item_singlerow_subselect::get_date() to avoid
unnecessary date->string->date conversion
parent
beec2a2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
sql/item_subselect.cc
sql/item_subselect.cc
+18
-0
sql/item_subselect.h
sql/item_subselect.h
+1
-0
No files found.
sql/item_subselect.cc
View file @
1a463305
...
...
@@ -1178,6 +1178,24 @@ bool Item_singlerow_subselect::val_bool()
}
bool
Item_singlerow_subselect
::
get_date
(
MYSQL_TIME
*
ltime
,
uint
fuzzydate
)
{
DBUG_ASSERT
(
fixed
==
1
);
if
(
forced_const
)
return
value
->
get_date
(
ltime
,
fuzzydate
);
if
(
!
exec
()
&&
!
value
->
null_value
)
{
null_value
=
FALSE
;
return
value
->
get_date
(
ltime
,
fuzzydate
);
}
else
{
reset
();
return
0
;
}
}
Item_exists_subselect
::
Item_exists_subselect
(
st_select_lex
*
select_lex
)
:
Item_subselect
()
{
...
...
sql/item_subselect.h
View file @
1a463305
...
...
@@ -275,6 +275,7 @@ class Item_singlerow_subselect :public Item_subselect
String
*
val_str
(
String
*
);
my_decimal
*
val_decimal
(
my_decimal
*
);
bool
val_bool
();
bool
get_date
(
MYSQL_TIME
*
ltime
,
uint
fuzzydate
);
enum
Item_result
result_type
()
const
;
enum_field_types
field_type
()
const
;
void
fix_length_and_dec
();
...
...
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