UNION stuff mainly.

sql/sql_class.h:
  Made some temporary changes for UNION's. Still waiting for Monty's 
  comments on this.
sql/sql_delete.cc:
  Added a comment as Monty suggested
sql/sql_parse.cc:
  Some speedups for UNIONs
sql/sql_unions.cc:
  First attempts at running UNION's. 
  
  Removed header temporarily because of some bug in my pre-processor.
This commit is contained in:
unknown 2001-07-11 14:06:41 +03:00
commit 0eb9347a98
4 changed files with 101 additions and 33 deletions

View file

@ -421,7 +421,7 @@ public:
virtual int prepare(List<Item> &list) { return 0; }
virtual bool send_fields(List<Item> &list,uint flag)=0;
virtual bool send_data(List<Item> &items)=0;
virtual void initialize_tables (JOIN *join=0) {};
virtual void initialize_tables (JOIN *join=0) {}
virtual void send_error(uint errcode,const char *err)=0;
virtual bool send_eof()=0;
virtual void abort() {}
@ -475,14 +475,13 @@ public:
bool send_eof();
};
class select_insert :public select_result {
protected:
public:
TABLE *table;
List<Item> *fields;
uint save_time_stamp;
ulonglong last_insert_id;
COPY_INFO info;
public:
select_insert(TABLE *table_par,List<Item> *fields_par,enum_duplicates duplic)
:table(table_par),fields(fields_par), save_time_stamp(0),last_insert_id(0)
{