Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
67743761
Commit
67743761
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: row_build_row_ref_from_row(): Unused, remove.
parent
be74c36d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
76 deletions
+0
-76
include/row0row.h
include/row0row.h
+0
-15
row/row0row.c
row/row0row.c
+0
-61
No files found.
include/row0row.h
View file @
67743761
...
@@ -215,21 +215,6 @@ row_build_row_ref_in_tuple(
...
@@ -215,21 +215,6 @@ row_build_row_ref_in_tuple(
or NULL */
or NULL */
trx_t
*
trx
);
/*!< in: transaction */
trx_t
*
trx
);
/*!< in: transaction */
/*******************************************************************//**
/*******************************************************************//**
From a row build a row reference with which we can search the clustered
index record. */
UNIV_INTERN
void
row_build_row_ref_from_row
(
/*=======================*/
dtuple_t
*
ref
,
/*!< in/out: row reference built;
see the NOTE below!
ref must have the right number
of fields! */
const
dict_table_t
*
table
,
/*!< in: table */
const
dtuple_t
*
row
);
/*!< in: row
NOTE: the data fields in ref will point
directly into data of this row */
/*******************************************************************//**
Builds from a secondary index record a row reference with which we can
Builds from a secondary index record a row reference with which we can
search the clustered index record. */
search the clustered index record. */
UNIV_INLINE
UNIV_INLINE
...
...
row/row0row.c
View file @
67743761
...
@@ -643,67 +643,6 @@ notfound:
...
@@ -643,67 +643,6 @@ notfound:
}
}
}
}
/*******************************************************************//**
From a row build a row reference with which we can search the clustered
index record. */
UNIV_INTERN
void
row_build_row_ref_from_row
(
/*=======================*/
dtuple_t
*
ref
,
/*!< in/out: row reference built;
see the NOTE below!
ref must have the right number
of fields! */
const
dict_table_t
*
table
,
/*!< in: table */
const
dtuple_t
*
row
)
/*!< in: row
NOTE: the data fields in ref will point
directly into data of this row */
{
const
dict_index_t
*
clust_index
;
ulint
ref_len
;
ulint
i
;
ut_ad
(
ref
&&
table
&&
row
);
clust_index
=
dict_table_get_first_index
(
table
);
ref_len
=
dict_index_get_n_unique
(
clust_index
);
ut_ad
(
ref_len
==
dtuple_get_n_fields
(
ref
));
for
(
i
=
0
;
i
<
ref_len
;
i
++
)
{
const
dict_col_t
*
col
;
const
dict_field_t
*
field
;
dfield_t
*
dfield
;
const
dfield_t
*
dfield2
;
dfield
=
dtuple_get_nth_field
(
ref
,
i
);
field
=
dict_index_get_nth_field
(
clust_index
,
i
);
col
=
dict_field_get_col
(
field
);
dfield2
=
dtuple_get_nth_field
(
row
,
dict_col_get_no
(
col
));
dfield_copy
(
dfield
,
dfield2
);
ut_ad
(
!
dfield_is_ext
(
dfield
));
if
(
field
->
prefix_len
>
0
&&
!
dfield_is_null
(
dfield
))
{
ulint
len
=
dfield_get_len
(
dfield
);
len
=
dtype_get_at_most_n_mbchars
(
col
->
prtype
,
col
->
mbminlen
,
col
->
mbmaxlen
,
field
->
prefix_len
,
len
,
dfield_get_data
(
dfield
));
dfield_set_len
(
dfield
,
len
);
}
}
ut_ad
(
dtuple_check_typed
(
ref
));
}
/***************************************************************//**
/***************************************************************//**
Searches the clustered index record for a row, if we have the row reference.
Searches the clustered index record for a row, if we have the row reference.
@return TRUE if found */
@return TRUE if found */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment