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
41a1af3b
Commit
41a1af3b
authored
May 09, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0sel.c:
Monty said an SQL NULL BLOB field must have NULL as the data pointer value
parent
5aa9a391
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
innobase/row/row0sel.c
innobase/row/row0sel.c
+2
-5
No files found.
innobase/row/row0sel.c
View file @
41a1af3b
...
...
@@ -31,8 +31,6 @@ Created 12/19/1997 Heikki Tuuri
#include "pars0pars.h"
#include "row0mysql.h"
byte
row_sel_dummy_byte
;
/* Maximum number of rows to prefetch; MySQL interface has another parameter */
#define SEL_MAX_N_PREFETCH 16
...
...
@@ -2122,13 +2120,12 @@ row_sel_store_mysql_rec(
has been marked to contain the SQL NULL value.
This caused seg faults reported by two users.
Set the BLOB length to 0 and the data pointer
to a dummy allocated mem address to avoid
a seg fault. */
to NULL to avoid a seg fault. */
if
(
templ
->
type
==
DATA_BLOB
)
{
row_sel_field_store_in_mysql_format
(
mysql_rec
+
templ
->
mysql_col_offset
,
templ
->
mysql_col_len
,
&
row_sel_dummy_byte
,
templ
->
mysql_col_len
,
NULL
,
0
,
templ
->
type
,
templ
->
is_unsigned
);
}
...
...
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