diff options
author | monty@hundin.mysql.fi <> | 2002-02-10 12:47:37 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-02-10 12:47:37 +0200 |
commit | 368731a915c1f28d243f5460cb50b0a80d2a0460 (patch) | |
tree | 7c1d39f59ed0aa7eba1303ca1a12035653eb1ae2 /sql/sql_select.cc | |
parent | 2abdcf81afe0ddcbab9784c63e3f8795c47f103c (diff) | |
download | mariadb-git-368731a915c1f28d243f5460cb50b0a80d2a0460.tar.gz |
Fixed bug in full join with many NULL fields.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 57053b87fa6..1ee0d84e182 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -5636,10 +5636,10 @@ SORT_FIELD *make_unireg_sortorder(ORDER *order, uint *length) /***************************************************************************** -** Fill join cache with packed records -** Records are stored in tab->cache.buffer and last record in -** last record is stored with pointers to blobs to support very big -** records + Fill join cache with packed records + Records are stored in tab->cache.buffer and last record in + last record is stored with pointers to blobs to support very big + records ******************************************************************************/ static int @@ -5701,7 +5701,7 @@ join_init_cache(THD *thd,JOIN_TAB *tables,uint table_count) if (null_fields && tables[i].table->null_fields) { /* must copy null bits */ copy->str=(char*) tables[i].table->null_flags; - copy->length=(tables[i].table->null_fields+7)/8; + copy->length=tables[i].table->null_bytes; copy->strip=0; copy->blob_field=0; length+=copy->length; |