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
acbca25d
Commit
acbca25d
authored
Dec 07, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postreview fix
parent
45ac6cf8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+3
-1
sql/item_subselect.cc
sql/item_subselect.cc
+7
-2
sql/item_subselect.h
sql/item_subselect.h
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+3
-1
sql/item_sum.h
sql/item_sum.h
+1
-1
No files found.
sql/item_cmpfunc.cc
View file @
acbca25d
...
@@ -146,7 +146,9 @@ void Item_func_not_all::print(String *str)
...
@@ -146,7 +146,9 @@ void Item_func_not_all::print(String *str)
/*
/*
special NOP for ALL subquery
Special NOP (No OPeration) for ALL subquery it is like Item_func_not_all
(return TRUE if underlaying sudquery do not return rows) but if subquery
returns some rows it return same value as argument (TRUE/FALSE).
*/
*/
longlong
Item_func_nop_all
::
val_int
()
longlong
Item_func_nop_all
::
val_int
()
...
...
sql/item_subselect.cc
View file @
acbca25d
...
@@ -292,14 +292,19 @@ Item_maxmin_subselect::Item_maxmin_subselect(Item_subselect *parent,
...
@@ -292,14 +292,19 @@ Item_maxmin_subselect::Item_maxmin_subselect(Item_subselect *parent,
void
Item_maxmin_subselect
::
cleanup
()
void
Item_maxmin_subselect
::
cleanup
()
{
{
DBUG_ENTER
(
"Item_maxmin_subselect::cleanup"
);
Item_singlerow_subselect
::
cleanup
();
/*
/*
By default i
s
is TRUE to avoid TRUE reporting by
By default i
t
is TRUE to avoid TRUE reporting by
Item_func_not_all/Item_func_nop_all if this item was never called.
Item_func_not_all/Item_func_nop_all if this item was never called.
Engine exec() set it to FALSE by reset_value_registration() call.
Engine exec() set it to FALSE by reset_value_registration() call.
select_max_min_finder_subselect::send_data() set it back to TRUE if some
value will be found.
*/
*/
was_values
=
TRUE
;
was_values
=
TRUE
;
DBUG_VOID_RETURN
;
}
}
...
...
sql/item_subselect.h
View file @
acbca25d
...
@@ -160,7 +160,7 @@ class Item_maxmin_subselect :public Item_singlerow_subselect
...
@@ -160,7 +160,7 @@ class Item_maxmin_subselect :public Item_singlerow_subselect
{
{
protected:
protected:
bool
max
;
bool
max
;
bool
was_values
;
//
was checked at least some values
bool
was_values
;
//
Set if we have found at least one row
public:
public:
Item_maxmin_subselect
(
Item_subselect
*
parent
,
Item_maxmin_subselect
(
Item_subselect
*
parent
,
st_select_lex
*
select_lex
,
bool
max
);
st_select_lex
*
select_lex
,
bool
max
);
...
...
sql/item_sum.cc
View file @
acbca25d
...
@@ -537,11 +537,13 @@ void Item_sum_hybrid::cleanup()
...
@@ -537,11 +537,13 @@ void Item_sum_hybrid::cleanup()
DBUG_ENTER
(
"Item_sum_hybrid::cleanup"
);
DBUG_ENTER
(
"Item_sum_hybrid::cleanup"
);
Item_sum
::
cleanup
();
Item_sum
::
cleanup
();
used_table_cache
=
~
(
table_map
)
0
;
used_table_cache
=
~
(
table_map
)
0
;
/*
/*
by default i
s
is TRUE to avoid TRUE reporting by
by default i
t
is TRUE to avoid TRUE reporting by
Item_func_not_all/Item_func_nop_all if this item was never called.
Item_func_not_all/Item_func_nop_all if this item was never called.
no_rows_in_result() set it to FALSE if was not results found.
no_rows_in_result() set it to FALSE if was not results found.
If some results found it will be left unchanged.
*/
*/
was_values
=
TRUE
;
was_values
=
TRUE
;
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
sql/item_sum.h
View file @
acbca25d
...
@@ -402,7 +402,7 @@ class Item_sum_hybrid :public Item_sum
...
@@ -402,7 +402,7 @@ class Item_sum_hybrid :public Item_sum
enum_field_types
hybrid_field_type
;
enum_field_types
hybrid_field_type
;
int
cmp_sign
;
int
cmp_sign
;
table_map
used_table_cache
;
table_map
used_table_cache
;
bool
was_values
;
//
was checked at least some values
(for max/min only)
bool
was_values
;
//
Set if we have found at least one row
(for max/min only)
public:
public:
Item_sum_hybrid
(
Item
*
item_par
,
int
sign
)
Item_sum_hybrid
(
Item
*
item_par
,
int
sign
)
...
...
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