summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorMattias Jonsson <mattiasj@mysql.com>2008-08-13 20:50:08 +0200
committerMattias Jonsson <mattiasj@mysql.com>2008-08-13 20:50:08 +0200
commitfd7c7e20afa4fc66776b213c7cb3927fcf4a07fe (patch)
tree3df70dbfd179c004dcc808e16ef9b655f13dbd19 /libmysqld
parentc8d01f1401af42693abc9480e0a9927002cd3670 (diff)
downloadmariadb-git-fd7c7e20afa4fc66776b213c7cb3927fcf4a07fe.tar.gz
Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that
partition is corrupt Post push fix an DBUG_ASSERT broke the embedded server, fixed by initializing it in the embedded version of Protocol_text::prepare_for_resend libmysqld/lib_sql.cc: Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that partition is corrupt Post push fix an DBUG_ASSERT in Protocol_text::store broke the embedded server, fixed by initializing it in the embedded version of Protocol_text::prepare_for_resend
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index e1c8ab5abb4..6e82812239e 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -1103,6 +1103,9 @@ void Protocol_text::prepare_for_resend()
data->embedded_info->prev_ptr= &cur->next;
next_field=cur->data;
next_mysql_field= data->embedded_info->fields_list;
+#ifndef DBUG_OFF
+ field_pos= 0;
+#endif
DBUG_VOID_RETURN;
}