~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/ha_myisam.cc

Merged up with build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
  uint32_t max_supported_keys()          const { return MI_MAX_KEY; }
109
109
  uint32_t max_supported_key_length()    const { return MI_MAX_KEY_LENGTH; }
110
110
  uint32_t max_supported_key_part_length() const { return MI_MAX_KEY_LENGTH; }
 
111
 
 
112
  uint32_t index_flags(enum  ha_key_alg) const
 
113
  {
 
114
    return (HA_READ_NEXT |
 
115
            HA_READ_PREV |
 
116
            HA_READ_RANGE |
 
117
            HA_READ_ORDER |
 
118
            HA_KEYREAD_ONLY);
 
119
  }
111
120
};
112
121
 
113
122
int MyisamEngine::doGetTableDefinition(Session&,
1039
1048
}
1040
1049
 
1041
1050
 
1042
 
uint32_t ha_myisam::index_flags(uint32_t inx, uint32_t, bool) const
1043
 
{
1044
 
  return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_FULLTEXT) ?
1045
 
          0 : HA_READ_NEXT | HA_READ_PREV | HA_READ_RANGE |
1046
 
          HA_READ_ORDER | HA_KEYREAD_ONLY |
1047
 
          (keys_with_parts.test(inx)?0:HA_DO_INDEX_COND_PUSHDOWN));
1048
 
}
1049
 
 
1050
 
 
1051
1051
int ha_myisam::index_read_map(unsigned char *buf, const unsigned char *key,
1052
1052
                              key_part_map keypart_map,
1053
1053
                              enum ha_rkey_function find_flag)
1554
1554
                           N_("Default pointer size to be used for MyISAM tables."),
1555
1555
                           NULL, NULL, 6, 2, 7, 0);
1556
1556
 
1557
 
static struct st_mysql_sys_var* system_variables[]= {
 
1557
static drizzle_sys_var* system_variables[]= {
1558
1558
  DRIZZLE_SYSVAR(block_size),
1559
1559
  DRIZZLE_SYSVAR(repair_threads),
1560
1560
  DRIZZLE_SYSVAR(max_sort_file_size),
1564
1564
};
1565
1565
 
1566
1566
 
1567
 
drizzle_declare_plugin
 
1567
DRIZZLE_DECLARE_PLUGIN
1568
1568
{
1569
1569
  "MyISAM",
1570
1570
  "1.0",
1577
1577
  system_variables,           /* system variables */
1578
1578
  NULL                        /* config options                  */
1579
1579
}
1580
 
drizzle_declare_plugin_end;
 
1580
DRIZZLE_DECLARE_PLUGIN_END;