summaryrefslogtreecommitdiff
path: root/sql/ha_sequence.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_sequence.cc')
-rw-r--r--sql/ha_sequence.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_sequence.cc b/sql/ha_sequence.cc
index e5db6781464..93f6f32d473 100644
--- a/sql/ha_sequence.cc
+++ b/sql/ha_sequence.cc
@@ -112,6 +112,12 @@ int ha_sequence::open(const char *name, int mode, uint flags)
}
else
table->m_needs_reopen= true;
+
+ /*
+ The following is needed to fix comparison of rows in
+ ha_update_first_row() for InnoDB
+ */
+ memcpy(table->record[1], table->s->default_values, table->s->reclength);
}
DBUG_RETURN(error);
}