diff options
author | unknown <bell@sanja.is.com.ua> | 2003-01-25 02:25:52 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-01-25 02:25:52 +0200 |
commit | b23541339c389e452b3d643c249afd4e7fb4899f (patch) | |
tree | 043b4b5b889f0d8173b87b17f3de8dc3fbbb1dd2 /sql/item_timefunc.h | |
parent | 3b33f0c2c14c9e210b81d8ee784c75f83ce99636 (diff) | |
download | mariadb-git-b23541339c389e452b3d643c249afd4e7fb4899f.tar.gz |
fixed subselects with temporary tables (SCRUM)
fixed memory leacks
mysql-test/r/subselect.result:
some changes in subselect tests
mysql-test/t/subselect.test:
some changes in subselect tests
sql/item.cc:
some item made copyable
methods for creating copy of item list
tmp_table_field() splited
sql/item.h:
some item made copyable
methods for creating copy of item list
tmp_table_field() splited
sql/item_cmpfunc.cc:
changed references creation
sql/item_cmpfunc.h:
changed references creation
sql/item_func.cc:
some item made copyable
methods for creating copy of item list
changed references creation
sql/item_func.h:
some item made copyable
methods for creating copy of item list
changed references creation
tmp_table_field() splited
sql/item_subselect.cc:
changed references creation
sql/item_sum.cc:
some item made copyable
methods for creating copy of item list
sql/item_sum.h:
some item made copyable
methods for creating copy of item list
sql/item_timefunc.h:
tmp_table_field() splited
sql/item_uniq.h:
some item made copyable
methods for creating copy of item list
sql/mysql_priv.h:
fixed subselects with temporary tables
sql/sql_base.cc:
fixed subselects with temporary tables
sql/sql_class.h:
fixed subselects with temporary tables
sql/sql_delete.cc:
fixed subselects with temporary tables
sql/sql_derived.cc:
fixed subselects with temporary tables
sql/sql_do.cc:
fixed subselects with temporary tables
sql/sql_insert.cc:
fixed subselects with temporary tables
sql/sql_lex.cc:
fixed subselects with temporary tables
sql/sql_lex.h:
fixed subselects with temporary tables
sql/sql_list.h:
fixed subselects with temporary tables
sql/sql_load.cc:
fixed subselects with temporary tables
sql/sql_olap.cc:
fixed subselects with temporary tables
sql/sql_parse.cc:
fixed subselects with temporary tables
sql/sql_prepare.cc:
fixed subselects with temporary tables
sql/sql_select.cc:
fixed subselects with temporary tables
sql/sql_select.h:
fixed subselects with temporary tables
sql/sql_table.cc:
fixed subselects with temporary tables
sql/sql_union.cc:
fixed subselects with temporary tables
sql/sql_update.cc:
fixed subselects with temporary tables
sql/sql_yacc.yy:
fixed subselects with temporary tables
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 40397351c18..5b968ed80eb 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -330,9 +330,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_DATE); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : new Field_date(maybe_null, name, t_arg, thd_charset()); + return (new Field_date(maybe_null, name, t_arg, thd_charset())); } }; @@ -347,10 +348,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_DATETIME); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : new Field_datetime(maybe_null, name, - t_arg, thd_charset()); + return (new Field_datetime(maybe_null, name, t_arg, thd_charset())); } }; @@ -373,10 +374,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_TIME); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : - new Field_time(maybe_null, name, t_arg, thd_charset()); + return (new Field_time(maybe_null, name, t_arg, thd_charset())); } }; @@ -475,10 +476,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_TIME); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : - new Field_time(maybe_null, name, t_arg, thd_charset()); + return (new Field_time(maybe_null, name, t_arg, thd_charset())); } }; @@ -570,10 +571,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_DATE); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : - new Field_date(maybe_null, name, t_arg, thd_charset()); + return (new Field_date(maybe_null, name, t_arg, thd_charset())); } }; @@ -587,10 +588,10 @@ public: { init_make_field(tmp_field,FIELD_TYPE_TIME); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : - new Field_time(maybe_null, name, t_arg, thd_charset()); + return (new Field_time(maybe_null, name, t_arg, thd_charset())); } }; @@ -604,9 +605,9 @@ public: { init_make_field(tmp_field,FIELD_TYPE_DATETIME); } + Field *tmp_table_field() { return result_field; } Field *tmp_table_field(TABLE *t_arg) { - return (!t_arg) ? result_field : new Field_datetime(maybe_null, name, - t_arg, thd_charset()); + return (new Field_datetime(maybe_null, name, t_arg, thd_charset())); } }; |