summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-05-09 16:33:12 +0300
committerunknown <heikki@hundin.mysql.fi>2002-05-09 16:33:12 +0300
commit479aed7658859e076b28fb99f1a61ee5f13d8192 (patch)
tree558328749b4c7fdf2a00a47fea2e19b672e87f77 /innobase
parentc04a7ea553ac7fd1e8b750ca883d5aff059dfbba (diff)
downloadmariadb-git-479aed7658859e076b28fb99f1a61ee5f13d8192.tar.gz
row0sel.c:
Monty said an SQL NULL BLOB field must have NULL as the data pointer value innobase/row/row0sel.c: Monty said an SQL NULL BLOB field must have NULL as the data pointer value
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0sel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c
index 5f110d85e7d..d6b2413c911 100644
--- a/innobase/row/row0sel.c
+++ b/innobase/row/row0sel.c
@@ -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);
}