~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Patrick Crews
  • Date: 2010-08-17 17:42:29 UTC
  • mfrom: (1711.1.24 build)
  • Revision ID: gleebix@gmail.com-20100817174229-e28p5025ndgkkxif
Rollup patch - optimizer fixes, mutex removal, client cleanup, translations update

Show diffs side-by-side

added added

removed removed

Lines of Context:
3161
3161
    tree= &optimizer::null_element;                        // cmp with NULL is never true
3162
3162
    goto end;
3163
3163
  }
 
3164
 
 
3165
  /*
 
3166
    Any predicate except "<=>"(null-safe equality operator) involving NULL as a
 
3167
    constant is always FALSE
 
3168
    Put IMPOSSIBLE Tree(null_element) here.
 
3169
  */  
 
3170
  if (type != Item_func::EQUAL_FUNC && field->is_real_null())
 
3171
  {
 
3172
    tree= &optimizer::null_element;
 
3173
    goto end;
 
3174
  }
 
3175
 
3164
3176
  str= (unsigned char*) alloc->alloc_root(key_part->store_length+1);
3165
3177
  if (!str)
3166
3178
    goto end;