Commit cbc91811 authored by gshchepa/uchum@gleb.loc's avatar gshchepa/uchum@gleb.loc

Merge gleb.loc:/work/bk/5.0-opt-32403

into  gleb.loc:/work/bk/5.0-opt
parents e854d43a 97ac0c27
...@@ -250,6 +250,9 @@ class SEL_ARG :public Sql_alloc ...@@ -250,6 +250,9 @@ class SEL_ARG :public Sql_alloc
Field *field; Field *field;
char *min_value,*max_value; // Pointer to range char *min_value,*max_value; // Pointer to range
/*
eq_tree() requires that left == right == 0 if the type is MAYBE_KEY.
*/
SEL_ARG *left,*right; /* R-B tree children */ SEL_ARG *left,*right; /* R-B tree children */
SEL_ARG *next,*prev; /* Links for bi-directional interval list */ SEL_ARG *next,*prev; /* Links for bi-directional interval list */
SEL_ARG *parent; /* R-B tree parent */ SEL_ARG *parent; /* R-B tree parent */
...@@ -265,7 +268,7 @@ class SEL_ARG :public Sql_alloc ...@@ -265,7 +268,7 @@ class SEL_ARG :public Sql_alloc
SEL_ARG(Field *field, uint8 part, char *min_value, char *max_value, SEL_ARG(Field *field, uint8 part, char *min_value, char *max_value,
uint8 min_flag, uint8 max_flag, uint8 maybe_flag); uint8 min_flag, uint8 max_flag, uint8 maybe_flag);
SEL_ARG(enum Type type_arg) SEL_ARG(enum Type type_arg)
:min_flag(0),elements(1),use_count(1),left(0),next_key_part(0), :min_flag(0),elements(1),use_count(1),left(0),right(0),next_key_part(0),
color(BLACK), type(type_arg) color(BLACK), type(type_arg)
{} {}
inline bool is_same(SEL_ARG *arg) inline bool is_same(SEL_ARG *arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment