summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 9c4c6287950..aea8f38d71a 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -5783,7 +5783,8 @@ int handler::calculate_checksum()
{
Field *f= table->field[i];
- if (! thd->variables.old_mode && f->is_real_null(0))
+ if (! (thd->variables.old_behavior & OLD_MODE_CHECKSUM_SLOW_NULLS) &&
+ f->is_real_null(0))
{
flush_checksum(&row_crc, &checksum_start, &checksum_length);
continue;