~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.h

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
 
17
#ifndef STORAGE_MYISAM_HA_MYISAM_H
 
18
#define STORAGE_MYISAM_HA_MYISAM_H
 
19
 
 
20
#include <drizzled/handler.h>
 
21
#include <mysys/thr_lock.h>
17
22
 
18
23
/* class for the the myisam handler */
19
24
 
57
62
  uint64_t table_flags() const { return int_table_flags; }
58
63
  int index_init(uint32_t idx, bool sorted);
59
64
  int index_end();
60
 
  uint32_t index_flags(uint32_t inx, uint32_t part __attribute__((unused)),
61
 
                       bool all_parts __attribute__((unused))) const
62
 
  {
63
 
    return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_FULLTEXT) ?
64
 
            0 : HA_READ_NEXT | HA_READ_PREV | HA_READ_RANGE |
65
 
            HA_READ_ORDER | HA_KEYREAD_ONLY | 
66
 
            (keys_with_parts.is_set(inx)?0:HA_DO_INDEX_COND_PUSHDOWN));
67
 
  }
 
65
  uint32_t index_flags(uint32_t inx, uint32_t part, bool all_parts) const;
68
66
  uint32_t max_supported_keys()          const { return MI_MAX_KEY; }
69
67
  uint32_t max_supported_key_length()    const { return MI_MAX_KEY_LENGTH; }
70
68
  uint32_t max_supported_key_part_length() const { return MI_MAX_KEY_LENGTH; }
159
157
  friend bool index_cond_func_myisam(void *arg);
160
158
};
161
159
 
 
160
#endif /* STORAGE_MYISAM_HA_MYISAM_H */