diff options
author | Igor Babaev <igor@askmonty.org> | 2013-04-22 20:55:22 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2013-04-22 20:55:22 -0700 |
commit | cd0e834d12627189910c4231e69b7ac5c01a3ddf (patch) | |
tree | a2a310ff9413a04e839a908a685afcedc4285e1a /sql/sql_select.h | |
parent | 16c3fbab034f42d0aabf182c1fe056b1da39f3f7 (diff) | |
parent | bb5b0a9f5bea18711cd849cbd8d4114764b505b8 (diff) | |
download | mariadb-git-cd0e834d12627189910c4231e69b7ac5c01a3ddf.tar.gz |
Merge 10.0-base -> 10.0
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 22880a251aa..d1f11b8ae71 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1846,4 +1846,17 @@ void setup_tmp_table_column_bitmaps(TABLE *table, uchar *bitmaps); double prev_record_reads(POSITION *positions, uint idx, table_map found_ref); void fix_list_after_tbl_changes(SELECT_LEX *new_parent, List<TABLE_LIST> *tlist); +struct st_cond_statistic +{ + Item *cond; + Field *field_arg; + ulong positive; +}; +typedef struct st_cond_statistic COND_STATISTIC; + +ulong check_selectivity(THD *thd, + ulong rows_to_read, + TABLE *table, + List<COND_STATISTIC> *conds); + #endif /* SQL_SELECT_INCLUDED */ |