~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • Committer: Brian Aker
  • Date: 2009-07-09 19:49:32 UTC
  • mfrom: (1085.1.10 mordred)
  • Revision ID: brian@gaz-20090709194932-o90qfzgk9xem5di1
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                                     Item *field,
77
77
                                     Item *value);
78
78
static bool copy_blobs(Field **ptr);
 
79
 
 
80
int init_read_record_seq(JOIN_TAB *tab);
 
81
 
79
82
static bool eval_const_cond(COND *cond)
80
83
{
81
84
    return ((Item_func*) cond)->val_int() ? true : false;
462
465
  return tbl;
463
466
}
464
467
 
465
 
void fix_list_after_tbl_changes(Select_Lex *new_parent, List<TableList> *tlist)
 
468
static void fix_list_after_tbl_changes(Select_Lex *new_parent, List<TableList> *tlist)
466
469
{
467
470
  List_iterator<TableList> it(*tlist);
468
471
  TableList *table;
2308
2311
    true   Yes
2309
2312
    false  No
2310
2313
*/
2311
 
bool uses_index_fields_only(Item *item, Table *tbl, uint32_t keyno, bool other_tbls_ok)
 
2314
static bool uses_index_fields_only(Item *item, Table *tbl, uint32_t keyno, bool other_tbls_ok)
2312
2315
{
2313
2316
  if (item->const_item())
2314
2317
    return true;
2400
2403
  RETURN
2401
2404
    Index condition, or NULL if no condition could be inferred.
2402
2405
*/
2403
 
Item *make_cond_for_index(Item *cond, Table *table, uint32_t keyno, bool other_tbls_ok)
 
2406
static Item *make_cond_for_index(Item *cond, Table *table, uint32_t keyno, bool other_tbls_ok)
2404
2407
{
2405
2408
  if (!cond)
2406
2409
    return NULL;
2463
2466
}
2464
2467
 
2465
2468
 
2466
 
Item *make_cond_remainder(Item *cond, bool exclude_index)
 
2469
static Item *make_cond_remainder(Item *cond, bool exclude_index)
2467
2470
{
2468
2471
  if (exclude_index && cond->marker == ICP_COND_USES_INDEX_ONLY)
2469
2472
    return 0; /* Already checked */
2713
2716
    - Item_equal for the found multiple equality predicate if a success;
2714
2717
    - NULL otherwise.
2715
2718
*/
2716
 
Item_equal *find_item_equal(COND_EQUAL *cond_equal, Field *field, bool *inherited_fl)
 
2719
static Item_equal *find_item_equal(COND_EQUAL *cond_equal, Field *field, bool *inherited_fl)
2717
2720
{
2718
2721
  Item_equal *item= 0;
2719
2722
  bool in_upper_level= false;