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
9a52ffbf
Commit
9a52ffbf
authored
Mar 16, 2005
by
jan@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a core dump bug after VARCHAR push in InnoDB.
parent
72e2466c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
innobase/row/row0sel.c
innobase/row/row0sel.c
+10
-4
No files found.
innobase/row/row0sel.c
View file @
9a52ffbf
...
...
@@ -2100,9 +2100,12 @@ row_sel_convert_mysql_key_to_innobase(
/* Calculate data length and data field total length */
if
(
type
==
DATA_BLOB
)
{
/* The key field is a column prefix of a BLOB or
TEXT type column */
if
(
type
==
DATA_BLOB
||
(
type
==
DATA_VARCHAR
&&
dtype_get_mysql_type
(
dfield_get_type
(
dfield
))
==
DATA_MYSQL_TRUE_VARCHAR
))
{
/* The key field is a column prefix of a BLOB,
TEXT, OR TRUE VARCHAR type column */
ut_a
(
field
->
prefix_len
>
0
);
...
...
@@ -2118,7 +2121,10 @@ row_sel_convert_mysql_key_to_innobase(
data_len
=
key_ptr
[
data_offset
]
+
256
*
key_ptr
[
data_offset
+
1
];
data_field_len
=
data_offset
+
2
+
field
->
prefix_len
;
data_offset
+=
2
;
if
(
type
==
DATA_BLOB
)
{
data_offset
+=
2
;
}
/* now that we know the length, we store the column
value like it would be a fixed char field */
...
...
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