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
1fd6a570
Commit
1fd6a570
authored
Oct 07, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
67b5aa64
eb76a9b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
38 deletions
+1
-38
sql/item_subselect.cc
sql/item_subselect.cc
+0
-11
sql/item_subselect.h
sql/item_subselect.h
+1
-27
No files found.
sql/item_subselect.cc
View file @
1fd6a570
...
@@ -483,17 +483,6 @@ String *Item_in_subselect::val_str(String *str)
...
@@ -483,17 +483,6 @@ String *Item_in_subselect::val_str(String *str)
return
str
;
return
str
;
}
}
Item_in_subselect
::
Item_in_subselect
(
Item_in_subselect
*
item
)
:
Item_exists_subselect
(
item
),
upper_not
(
item
->
upper_not
)
{
left_expr
=
item
->
left_expr
;
abort_on_null
=
item
->
abort_on_null
;
}
Item_allany_subselect
::
Item_allany_subselect
(
Item_allany_subselect
*
item
)
:
Item_in_subselect
(
item
),
func
(
item
->
func
)
{}
Item_subselect
::
trans_res
Item_subselect
::
trans_res
Item_in_subselect
::
single_value_transformer
(
JOIN
*
join
,
Item_in_subselect
::
single_value_transformer
(
JOIN
*
join
,
...
...
sql/item_subselect.h
View file @
1fd6a570
...
@@ -56,17 +56,6 @@ public:
...
@@ -56,17 +56,6 @@ public:
EXISTS_SUBS
,
IN_SUBS
,
ALL_SUBS
,
ANY_SUBS
};
EXISTS_SUBS
,
IN_SUBS
,
ALL_SUBS
,
ANY_SUBS
};
Item_subselect
();
Item_subselect
();
Item_subselect
(
Item_subselect
*
item
)
{
substitution
=
item
->
substitution
;
null_value
=
item
->
null_value
;
decimals
=
item
->
decimals
;
max_columns
=
item
->
max_columns
;
engine
=
item
->
engine
;
engine_owner
=
0
;
engine_changed
=
item
->
engine_changed
;
name
=
item
->
name
;
}
virtual
subs_type
substype
()
{
return
UNKNOWN_SUBS
;
}
virtual
subs_type
substype
()
{
return
UNKNOWN_SUBS
;
}
...
@@ -123,13 +112,6 @@ protected:
...
@@ -123,13 +112,6 @@ protected:
Item_cache
*
value
,
**
row
;
Item_cache
*
value
,
**
row
;
public:
public:
Item_singlerow_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
);
Item_singlerow_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
);
Item_singlerow_subselect
(
Item_singlerow_subselect
*
item
)
:
Item_subselect
(
item
)
{
value
=
item
->
value
;
max_length
=
item
->
max_length
;
decimals
=
item
->
decimals
;
}
Item_singlerow_subselect
()
:
Item_subselect
(),
value
(
0
),
row
(
0
)
{}
Item_singlerow_subselect
()
:
Item_subselect
(),
value
(
0
),
row
(
0
)
{}
subs_type
substype
()
{
return
SINGLEROW_SUBS
;
}
subs_type
substype
()
{
return
SINGLEROW_SUBS
;
}
...
@@ -140,7 +122,6 @@ public:
...
@@ -140,7 +122,6 @@ public:
double
val
();
double
val
();
longlong
val_int
();
longlong
val_int
();
String
*
val_str
(
String
*
);
String
*
val_str
(
String
*
);
Item
*
new_item
()
{
return
new
Item_singlerow_subselect
(
this
);
}
enum
Item_result
result_type
()
const
;
enum
Item_result
result_type
()
const
;
void
fix_length_and_dec
();
void
fix_length_and_dec
();
...
@@ -172,11 +153,6 @@ protected:
...
@@ -172,11 +153,6 @@ protected:
public:
public:
Item_exists_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
);
Item_exists_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
);
Item_exists_subselect
(
Item_exists_subselect
*
item
)
:
Item_subselect
(
item
)
{
value
=
item
->
value
;
}
Item_exists_subselect
()
:
Item_subselect
()
{}
Item_exists_subselect
()
:
Item_subselect
()
{}
subs_type
substype
()
{
return
EXISTS_SUBS
;
}
subs_type
substype
()
{
return
EXISTS_SUBS
;
}
...
@@ -185,7 +161,6 @@ public:
...
@@ -185,7 +161,6 @@ public:
value
=
0
;
value
=
0
;
}
}
Item
*
new_item
()
{
return
new
Item_exists_subselect
(
this
);
}
enum
Item_result
result_type
()
const
{
return
INT_RESULT
;}
enum
Item_result
result_type
()
const
{
return
INT_RESULT
;}
longlong
val_int
();
longlong
val_int
();
double
val
();
double
val
();
...
@@ -215,7 +190,6 @@ public:
...
@@ -215,7 +190,6 @@ public:
Item_func_not_all
*
upper_not
;
// point on NOT before ALL subquery
Item_func_not_all
*
upper_not
;
// point on NOT before ALL subquery
Item_in_subselect
(
THD
*
thd
,
Item
*
left_expr
,
st_select_lex
*
select_lex
);
Item_in_subselect
(
THD
*
thd
,
Item
*
left_expr
,
st_select_lex
*
select_lex
);
Item_in_subselect
(
Item_in_subselect
*
item
);
Item_in_subselect
()
Item_in_subselect
()
:
Item_exists_subselect
(),
abort_on_null
(
0
),
upper_not
(
0
)
{}
:
Item_exists_subselect
(),
abort_on_null
(
0
),
upper_not
(
0
)
{}
...
@@ -252,7 +226,7 @@ protected:
...
@@ -252,7 +226,7 @@ protected:
public:
public:
Item_allany_subselect
(
THD
*
thd
,
Item
*
left_expr
,
compare_func_creator
f
,
Item_allany_subselect
(
THD
*
thd
,
Item
*
left_expr
,
compare_func_creator
f
,
st_select_lex
*
select_lex
);
st_select_lex
*
select_lex
);
Item_allany_subselect
(
Item_allany_subselect
*
item
);
// only ALL subquery has upper not
// only ALL subquery has upper not
subs_type
substype
()
{
return
upper_not
?
ALL_SUBS
:
ANY_SUBS
;
}
subs_type
substype
()
{
return
upper_not
?
ALL_SUBS
:
ANY_SUBS
;
}
trans_res
select_transformer
(
JOIN
*
join
);
trans_res
select_transformer
(
JOIN
*
join
);
...
...
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