diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-01-13 17:43:54 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:29 +0100 |
commit | 4210538122e6e868848c703dab6c1b0d59733d28 (patch) | |
tree | 82bb0a57f07ee63d980e4bec398138ad87831366 /sql/item_subselect.h | |
parent | 03a0623f1e50c94048d23b05ec0411243f73f9f5 (diff) | |
download | mariadb-git-4210538122e6e868848c703dab6c1b0d59733d28.tar.gz |
cleanup: avoid Field::field_index
prefer x->field over table->field[x->field->field_index]
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 83340573e8a..823dbc6c281 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -1236,10 +1236,10 @@ public: uint get_column_count() { return key_column_count; } uint get_keyid() { return keyid; } - uint get_field_idx(uint i) + Field *get_field(uint i) { DBUG_ASSERT(i < key_column_count); - return key_columns[i]->field->field_index; + return key_columns[i]->field; } rownum_t get_min_null_row() { return min_null_row; } rownum_t get_max_null_row() { return max_null_row; } |