summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-07-04 08:46:28 +0300
committerbell@sanja.is.com.ua <>2004-07-04 08:46:28 +0300
commit130740248b1eafcd935e7c75cfc2f195abb63a55 (patch)
treed6a6c85cea95dfe4c044d9760b89e545dd34256e /sql/item_subselect.h
parentfb7f15188a11e05310f1cf68c6ce74fe9f30ce84 (diff)
downloadmariadb-git-130740248b1eafcd935e7c75cfc2f195abb63a55.tar.gz
aggregate functions check during substitution made only for single row subselects (BUG#4400)
restoring current senect pointer before PS rexecution (backport from 5.0) removed spaces at lines ends
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index 364781de362..6b8b8b0b3a7 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -47,7 +47,7 @@ protected:
/* old engine if engine was changed */
subselect_engine *old_engine;
/* cache of used external tables */
- table_map used_tables_cache;
+ table_map used_tables_cache;
/* allowed number of columns (1 for single value subqueries) */
uint max_columns;
/* work with 'substitution' */
@@ -69,17 +69,17 @@ public:
virtual subs_type substype() { return UNKNOWN_SUBS; }
- /*
+ /*
We need this method, because some compilers do not allow 'this'
pointer in constructor initialization list, but we need pass pointer
to subselect Item class to select_subselect classes constructor.
*/
- virtual void init (st_select_lex *select_lex,
+ virtual void init (st_select_lex *select_lex,
select_subselect *result);
~Item_subselect();
void cleanup();
- virtual void reset()
+ virtual void reset()
{
null_value= 1;
}
@@ -275,7 +275,7 @@ public:
}
virtual ~subselect_engine() {}; // to satisfy compiler
virtual void cleanup()= 0;
-
+
// set_thd should be called before prepare()
void set_thd(THD *thd_arg) { thd= thd_arg; }
THD * get_thd() { return thd; }