summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-03-25 14:49:43 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2003-03-25 14:49:43 +0200
commitf9df0feecbdd8c576d043731558a8d1b80b78be2 (patch)
treefae63df75f7d9e8b6e0727e082542ebe35e44fdc /myisam
parent0783e5bc2f6fa2aa754958d147619b1ba92e60a5 (diff)
downloadmariadb-git-f9df0feecbdd8c576d043731558a8d1b80b78be2.tar.gz
A fix for a bug in MyISAM with large number of NULL columns and at
least one BLOB column.
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_dynrec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c
index c9fe493744d..4f321c268f1 100644
--- a/myisam/mi_dynrec.c
+++ b/myisam/mi_dynrec.c
@@ -62,8 +62,8 @@ int _mi_write_blob_record(MI_INFO *info, const byte *record)
extra=ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+
MI_DYN_DELETE_BLOCK_HEADER+1;
- reclength=info->s->base.pack_reclength+
- _my_calc_total_blob_length(info,record)+ extra;
+ reclength= (info->s->base.pack_reclength+ info->s->base.pack_bits+
+ _my_calc_total_blob_length(info,record)+ extra);
if (reclength > MI_DYN_MAX_ROW_LENGTH)
{
my_errno=HA_ERR_TO_BIG_ROW;