mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
branches/zip: dict_table_copy_types(), dict_index_copy_types(): Add const
qualifiers. Correct the documentation of the parameters.
This commit is contained in:
parent
abc7f6c997
commit
a1475f6990
2 changed files with 14 additions and 12 deletions
|
@ -1572,9 +1572,10 @@ Copies types of fields contained in index to tuple. */
|
|||
void
|
||||
dict_index_copy_types(
|
||||
/*==================*/
|
||||
dtuple_t* tuple, /* in: data tuple */
|
||||
dict_index_t* index, /* in: index */
|
||||
ulint n_fields) /* in: number of field types to copy */
|
||||
dtuple_t* tuple, /* in/out: data tuple */
|
||||
const dict_index_t* index, /* in: index */
|
||||
ulint n_fields) /* in: number of
|
||||
field types to copy */
|
||||
{
|
||||
ulint i;
|
||||
|
||||
|
@ -1585,8 +1586,8 @@ dict_index_copy_types(
|
|||
}
|
||||
|
||||
for (i = 0; i < n_fields; i++) {
|
||||
dict_field_t* ifield;
|
||||
dtype_t* dfield_type;
|
||||
const dict_field_t* ifield;
|
||||
dtype_t* dfield_type;
|
||||
|
||||
ifield = dict_index_get_nth_field(index, i);
|
||||
dfield_type = dfield_get_type(dtuple_get_nth_field(tuple, i));
|
||||
|
@ -1603,8 +1604,8 @@ Copies types of columns contained in table to tuple. */
|
|||
void
|
||||
dict_table_copy_types(
|
||||
/*==================*/
|
||||
dtuple_t* tuple, /* in: data tuple */
|
||||
dict_table_t* table) /* in: index */
|
||||
dtuple_t* tuple, /* in/out: data tuple */
|
||||
const dict_table_t* table) /* in: table */
|
||||
{
|
||||
dtype_t* dfield_type;
|
||||
ulint i;
|
||||
|
|
|
@ -633,8 +633,8 @@ Copies types of columns contained in table to tuple. */
|
|||
void
|
||||
dict_table_copy_types(
|
||||
/*==================*/
|
||||
dtuple_t* tuple, /* in: data tuple */
|
||||
dict_table_t* table); /* in: index */
|
||||
dtuple_t* tuple, /* in/out: data tuple */
|
||||
const dict_table_t* table); /* in: table */
|
||||
/**************************************************************************
|
||||
Looks for an index with the given id. NOTE that we do not reserve
|
||||
the dictionary mutex: this function is for emergency purposes like
|
||||
|
@ -813,9 +813,10 @@ Copies types of fields contained in index to tuple. */
|
|||
void
|
||||
dict_index_copy_types(
|
||||
/*==================*/
|
||||
dtuple_t* tuple, /* in: data tuple */
|
||||
dict_index_t* index, /* in: index */
|
||||
ulint n_fields); /* in: number of field types to copy */
|
||||
dtuple_t* tuple, /* in/out: data tuple */
|
||||
const dict_index_t* index, /* in: index */
|
||||
ulint n_fields); /* in: number of
|
||||
field types to copy */
|
||||
/*************************************************************************
|
||||
Gets the field column. */
|
||||
UNIV_INLINE
|
||||
|
|
Loading…
Add table
Reference in a new issue