Commit f2651a69 authored by osku's avatar osku

row_sel_store_mysql_rec(): Remove useless call to rec_get_nth_field

when handling an externally stored column.
parent 4b9c6310
...@@ -2563,9 +2563,6 @@ row_sel_store_mysql_rec( ...@@ -2563,9 +2563,6 @@ row_sel_store_mysql_rec(
templ = prebuilt->mysql_template + i; templ = prebuilt->mysql_template + i;
data = rec_get_nth_field(rec, offsets,
templ->rec_field_no, &len);
if (UNIV_UNLIKELY(rec_offs_nth_extern(offsets, if (UNIV_UNLIKELY(rec_offs_nth_extern(offsets,
templ->rec_field_no))) { templ->rec_field_no))) {
...@@ -2585,6 +2582,11 @@ row_sel_store_mysql_rec( ...@@ -2585,6 +2582,11 @@ row_sel_store_mysql_rec(
extern_field_heap); extern_field_heap);
ut_a(len != UNIV_SQL_NULL); ut_a(len != UNIV_SQL_NULL);
} else {
/* Field is stored in the row. */
data = rec_get_nth_field(rec, offsets,
templ->rec_field_no, &len);
} }
if (len != UNIV_SQL_NULL) { if (len != UNIV_SQL_NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment