diff options
author | Igor Babaev <igor@askmonty.org> | 2011-05-25 16:01:56 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-05-25 16:01:56 -0700 |
commit | deb3b9a17498d101468fc12a633245fc74730133 (patch) | |
tree | 8596b662f6af5d5367c95dff770ed2daf7516b35 /storage/xtradb/include/dict0dict.ic | |
parent | 7fc2d46a88aeb03da39439538e90fafc8cc76ad7 (diff) | |
download | mariadb-git-deb3b9a17498d101468fc12a633245fc74730133.tar.gz |
Downported InnoDB support of Index Condition Pushdown from MySQL-5.6 code line.
Diffstat (limited to 'storage/xtradb/include/dict0dict.ic')
-rw-r--r-- | storage/xtradb/include/dict0dict.ic | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/storage/xtradb/include/dict0dict.ic b/storage/xtradb/include/dict0dict.ic index bd7534dc7e2..02527d8edd2 100644 --- a/storage/xtradb/include/dict0dict.ic +++ b/storage/xtradb/include/dict0dict.ic @@ -656,6 +656,20 @@ dict_index_get_nth_col_no( return(dict_col_get_no(dict_index_get_nth_col(index, pos))); } +/********************************************************************//** +Looks for column n in an index. +@return position in internal representation of the index; +ULINT_UNDEFINED if not contained */ +UNIV_INLINE +ulint +dict_index_get_nth_col_pos( +/*=======================*/ + const dict_index_t* index, /*!< in: index */ + ulint n) /*!< in: column number */ +{ + return(dict_index_get_nth_col_or_prefix_pos(index, n, FALSE)); +} + #ifndef UNIV_HOTBACKUP /********************************************************************//** Returns the minimum data size of an index record. |