~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/pars/pars0opt.c

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
        if (goodness >= 4 * dict_index_get_n_unique(index)) {
363
363
                goodness += 1024;
364
364
 
365
 
                if (dict_index_is_clust(index)) {
 
365
                if (index->type & DICT_CLUSTERED) {
366
366
 
367
367
                        goodness += 1024;
368
368
                }
369
369
        }
370
370
 
371
371
        /* We have to test for goodness here, as last_op may note be set */
372
 
        if (goodness && dict_index_is_clust(index)) {
 
372
        if (goodness && index->type & DICT_CLUSTERED) {
373
373
 
374
374
                goodness++;
375
375
        }
587
587
                                                   best_last_op);
588
588
        }
589
589
 
590
 
        if (dict_index_is_clust(best_index)
 
590
        if ((best_index->type & DICT_CLUSTERED)
591
591
            && (plan->n_exact_match >= dict_index_get_n_unique(best_index))) {
592
592
 
593
593
                plan->unique_search = TRUE;
819
819
indirection to point to the occurrence in the column list, except if the
820
820
column occurrence we are looking at is in the column list, in which case
821
821
nothing is done. */
822
 
UNIV_INTERN
 
822
 
823
823
void
824
824
opt_find_all_cols(
825
825
/*==============*/
906
906
 
907
907
        sym_node->field_nos[SYM_CLUST_FIELD_NO] = dict_index_get_nth_col_pos(
908
908
                dict_table_get_first_index(index->table), sym_node->col_no);
909
 
        if (!dict_index_is_clust(index)) {
 
909
        if (!(index->type & DICT_CLUSTERED)) {
910
910
 
911
911
                ut_a(plan);
912
912
 
1041
1041
 
1042
1042
        plan->no_prefetch = FALSE;
1043
1043
 
1044
 
        if (dict_index_is_clust(index)) {
 
1044
        if (index->type & DICT_CLUSTERED) {
1045
1045
                plan->clust_map = NULL;
1046
1046
                plan->clust_ref = NULL;
1047
1047
 
1089
1089
Optimizes a select. Decides which indexes to tables to use. The tables
1090
1090
are accessed in the order that they were written to the FROM part in the
1091
1091
select statement. */
1092
 
UNIV_INTERN
 
1092
 
1093
1093
void
1094
1094
opt_search_plan(
1095
1095
/*============*/
1162
1162
 
1163
1163
/************************************************************************
1164
1164
Prints info of a query plan. */
1165
 
UNIV_INTERN
 
1165
 
1166
1166
void
1167
1167
opt_print_query_plan(
1168
1168
/*=================*/