~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Jay Pipes
  • Date: 2009-01-30 04:38:21 UTC
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090130043821-4d7jg2ftabefamxb
Fixes for the QUARTER() function to use new Temporal system and throw
errors on bad datetime values.

Added test case for QUARTER() function and modified func_time.test existing
test to correctly throw errors and report NULL, not 0 on NULL input.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
     - information schema table
39
39
       (TableList::schema_table != NULL)
40
40
       NOTICE: for schema tables TableList::field_translation may be != NULL
41
 
  2) view (TableList::view != NULL)
42
 
     - merge    (TableList::effective_algorithm == VIEW_ALGORITHM_MERGE)
43
 
           also (TableList::field_translation != NULL)
44
 
     - tmptable (TableList::effective_algorithm == VIEW_ALGORITHM_TMPTABLE)
45
 
           also (TableList::field_translation == NULL)
 
41
  2) Was VIEW 
46
42
  3) nested table reference (TableList::nested_join != NULL)
47
43
     - table sequence - e.g. (t1, t2, t3)
48
44
       TODO: how to distinguish from a JOIN?
67
63
class ST_SCHEMA_TABLE;
68
64
class st_select_lex;
69
65
class TMP_TABLE_PARAM;
70
 
class Field_translator;
71
66
class Item_subselect;
72
67
class Table;
73
68
 
112
107
  */
113
108
  table_map     sj_inner_tables;
114
109
  /* Number of IN-compared expressions */
115
 
  uint32_t          sj_in_exprs; 
 
110
  uint32_t          sj_in_exprs;
116
111
  /*
117
112
    The structure of ON expression presented in the member above
118
113
    can be changed during certain optimizations. This member
182
177
  TMP_TABLE_PARAM *schema_table_param;
183
178
  /* link to select_lex where this table was used */
184
179
  st_select_lex *select_lex;
185
 
  Field_translator *field_translation;  /* array of VIEW fields */
186
 
  /* pointer to element after last one in translation table above */
187
 
  Field_translator *field_translation_end;
188
180
  /*
189
181
    List (based on next_local) of underlying tables of this view. I.e. it
190
182
    does not include the tables of subqueries used in the view. Is set only
260
252
  void reinit_before_use(Session *session);
261
253
  Item_subselect *containing_subselect();
262
254
 
263
 
  /* 
 
255
  /*
264
256
    Compiles the tagged hints list and fills up st_table::keys_in_use_for_query,
265
257
    st_table::keys_in_use_for_group_by, st_table::keys_in_use_for_order_by,
266
258
    st_table::force_index and st_table::covering_keys.