summaryrefslogtreecommitdiff
path: root/innobase/row/row0mysql.c
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2003-06-16 00:39:46 +0300
committerheikki@hundin.mysql.fi <>2003-06-16 00:39:46 +0300
commit29796e6240f3d0c8979d09f9a15a978317ca9f39 (patch)
tree27d56cd87eb5acb3ee57772ad608aeaa81e7eb42 /innobase/row/row0mysql.c
parent95ffe2d0cac112d495d49a3da65d10f0883ca874 (diff)
downloadmariadb-git-29796e6240f3d0c8979d09f9a15a978317ca9f39.tar.gz
row0mysql.c, dict0dict.ic:
Cleanup ha_innodb.cc, data0type.h: Make sure non-latin1 users can downgrade from 4.0.14 to an earlier version if they have not created DATA_BLOB column prefix indexes
Diffstat (limited to 'innobase/row/row0mysql.c')
-rw-r--r--innobase/row/row0mysql.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c
index 61ba9111b91..dc2a50c4f0c 100644
--- a/innobase/row/row0mysql.c
+++ b/innobase/row/row0mysql.c
@@ -507,6 +507,7 @@ row_get_prebuilt_insert_row(
ins_node_t* node;
dtuple_t* row;
dict_table_t* table = prebuilt->table;
+ ulint i;
ut_ad(prebuilt && table && prebuilt->trx);
@@ -530,6 +531,14 @@ row_get_prebuilt_insert_row(
dict_table_copy_types(row, table);
+ /* We init the value of every field to the SQL NULL to avoid
+ a debug assertion from failing */
+
+ for (i = 0; i < dtuple_get_n_fields(row); i++) {
+
+ dtuple_get_nth_field(row, i)->len = UNIV_SQL_NULL;
+ }
+
ins_node_set_new_row(node, row);
prebuilt->ins_graph =