~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.cc

Merged in Jay's tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1389
1389
int ha_myisam::index_init(uint idx, bool sorted __attribute__((__unused__)))
1390
1390
1391
1391
  active_index=idx;
1392
 
  //in_range_read= FALSE;
 
1392
  //in_range_read= false;
1393
1393
  if (pushed_idx_cond_keyno == idx)
1394
1394
    mi_set_index_cond_func(file, index_cond_func_myisam, this);
1395
1395
  return 0; 
1401
1401
  active_index=MAX_KEY;
1402
1402
  //pushed_idx_cond_keyno= MAX_KEY;
1403
1403
  mi_set_index_cond_func(file, NULL, 0);
1404
 
  in_range_check_pushed_down= FALSE;
 
1404
  in_range_check_pushed_down= false;
1405
1405
  ds_mrr.dsmrr_close();
1406
1406
  return 0; 
1407
1407
}
1498
1498
{
1499
1499
  int res;
1500
1500
  //if (!eq_range_arg)
1501
 
  //  in_range_read= TRUE;
 
1501
  //  in_range_read= true;
1502
1502
 
1503
1503
  res= handler::read_range_first(start_key, end_key, eq_range_arg, sorted);
1504
1504
 
1505
1505
  //if (res)
1506
 
  //  in_range_read= FALSE;
 
1506
  //  in_range_read= false;
1507
1507
  return res;
1508
1508
}
1509
1509
 
1512
1512
{
1513
1513
  int res= handler::read_range_next();
1514
1514
  //if (res)
1515
 
  //  in_range_read= FALSE;
 
1515
  //  in_range_read= false;
1516
1516
  return res;
1517
1517
}
1518
1518
 
1765
1765
    ha_myisam::info(HA_STATUS_AUTO);
1766
1766
    *first_value= stats.auto_increment_value;
1767
1767
    /* MyISAM has only table-level lock, so reserves to +inf */
1768
 
    *nb_reserved_values= ULONGLONG_MAX;
 
1768
    *nb_reserved_values= UINT64_MAX;
1769
1769
    return;
1770
1770
  }
1771
1771
 
1926
1926
{
1927
1927
  pushed_idx_cond_keyno= keyno_arg;
1928
1928
  pushed_idx_cond= idx_cond_arg;
1929
 
  in_range_check_pushed_down= TRUE;
 
1929
  in_range_check_pushed_down= true;
1930
1930
  if (active_index == pushed_idx_cond_keyno)
1931
1931
    mi_set_index_cond_func(file, index_cond_func_myisam, this);
1932
1932
  return NULL;
1971
1971
  @see handler::register_query_cache_table
1972
1972
 
1973
1973
  @return The error code. The engine_data and engine_callback will be set to 0.
1974
 
    @retval TRUE Success
1975
 
    @retval FALSE An error occured
 
1974
    @retval true Success
 
1975
    @retval false An error occured
1976
1976
*/
1977
1977
 
1978
1978
my_bool ha_myisam::register_query_cache_table(THD *thd, char *table_name,
2030
2030
    if (current_data_file_length != actual_data_file_length)
2031
2031
    {
2032
2032
      /* Don't cache current statement. */
2033
 
      DBUG_RETURN(FALSE);
 
2033
      DBUG_RETURN(false);
2034
2034
    }
2035
2035
  }
2036
2036
 
2037
2037
  /* It is ok to try to cache current statement. */
2038
 
  DBUG_RETURN(TRUE);
 
2038
  DBUG_RETURN(true);
2039
2039
}
2040
2040
#endif