~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-12 00:28:56 UTC
  • mto: (1115.3.10 captain)
  • mto: This revision was merged to the branch mainline in revision 1120.
  • Revision ID: osullivan.padraig@gmail.com-20090812002856-9szr64d8dbdfgwz9
Created new header and implementation files for KEY_FIELD related code.
Moved these files to the optimizer sub-directory and into the optimizer
namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
#include "drizzled/join.h"
98
98
 
99
 
/**
100
 
 * Structure used when finding key fields
101
 
 */
102
 
typedef struct key_field_t 
103
 
{
104
 
  Field *field;
105
 
  Item *val; /**< May be empty if diff constant */
106
 
  uint32_t level;
107
 
  uint32_t optimize; /**< KEY_OPTIMIZE_* */
108
 
  bool eq_func;
109
 
  /**
110
 
    If true, the condition this struct represents will not be satisfied
111
 
    when val IS NULL.
112
 
  */
113
 
  bool null_rejecting;
114
 
  bool *cond_guard; /**< @see KeyUse::cond_guard */
115
 
} KEY_FIELD;
116
 
 
117
99
/*****************************************************************************
118
100
  Make som simple condition optimization:
119
101
  If there is a test 'field = const' change all refs to 'field' to 'const'