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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
135e5219
Commit
135e5219
authored
May 23, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch externally stored fields when using InnoDB's internal SQL parser.
parent
749f72da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
row/row0sel.c
row/row0sel.c
+28
-2
No files found.
row/row0sel.c
View file @
135e5219
...
...
@@ -302,19 +302,45 @@ row_sel_fetch_columns(
}
while
(
column
)
{
mem_heap_t
*
heap
=
NULL
;
ibool
needs_copy
;
field_no
=
column
->
field_nos
[
index_type
];
if
(
field_no
!=
ULINT_UNDEFINED
)
{
data
=
rec_get_nth_field
(
rec
,
offsets
,
field_no
,
&
len
);
if
(
UNIV_UNLIKELY
(
rec_offs_nth_extern
(
offsets
,
field_no
)))
{
/* Copy an externally stored field to the
temporary heap */
heap
=
mem_heap_create
(
1
);
if
(
column
->
copy_val
)
{
data
=
btr_rec_copy_externally_stored_field
(
rec
,
offsets
,
field_no
,
&
len
,
heap
);
ut_a
(
len
!=
UNIV_SQL_NULL
);
needs_copy
=
TRUE
;
}
else
{
data
=
rec_get_nth_field
(
rec
,
offsets
,
field_no
,
&
len
);
needs_copy
=
column
->
copy_val
;
}
if
(
needs_copy
)
{
eval_node_copy_and_alloc_val
(
column
,
data
,
len
);
}
else
{
val
=
que_node_get_val
(
column
);
dfield_set_data
(
val
,
data
,
len
);
}
if
(
UNIV_LIKELY_NULL
(
heap
))
{
mem_heap_free
(
heap
);
}
}
column
=
UT_LIST_GET_NEXT
(
col_var_list
,
column
);
...
...
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