Commit dbe5ef79 authored by unknown's avatar unknown

merge

parent 696fd08e
...@@ -2156,11 +2156,11 @@ void ha_ndbcluster::unpack_record(byte* buf) ...@@ -2156,11 +2156,11 @@ void ha_ndbcluster::unpack_record(byte* buf)
NdbValue *value= m_value; NdbValue *value= m_value;
DBUG_ENTER("unpack_record"); DBUG_ENTER("unpack_record");
end= table->field + table->fields; end= table->field + table->s->fields;
// Set null flag(s) // Set null flag(s)
bzero(buf, table->s->null_bytes); bzero(buf, table->s->null_bytes);
for (field= table->field, end= field+table->s->fields; for (field= table->field;
field < end; field < end;
field++, value++) field++, value++)
{ {
...@@ -4942,7 +4942,7 @@ ha_ndbcluster::read_multi_range_first(KEY_MULTI_RANGE **found_range_p, ...@@ -4942,7 +4942,7 @@ ha_ndbcluster::read_multi_range_first(KEY_MULTI_RANGE **found_range_p,
int res; int res;
KEY* key_info= table->key_info + active_index; KEY* key_info= table->key_info + active_index;
NDB_INDEX_TYPE index_type= get_index_type(active_index); NDB_INDEX_TYPE index_type= get_index_type(active_index);
ulong reclength= table->reclength; ulong reclength= table->s->reclength;
NdbOperation* op; NdbOperation* op;
if (uses_blob_value(m_retrieve_all_fields)) if (uses_blob_value(m_retrieve_all_fields))
...@@ -5122,7 +5122,7 @@ ha_ndbcluster::read_multi_range_next(KEY_MULTI_RANGE ** multi_range_found_p) ...@@ -5122,7 +5122,7 @@ ha_ndbcluster::read_multi_range_next(KEY_MULTI_RANGE ** multi_range_found_p)
int res; int res;
int range_no; int range_no;
ulong reclength= table->reclength; ulong reclength= table->s->reclength;
const NdbOperation* op= m_current_multi_operation; const NdbOperation* op= m_current_multi_operation;
for(;multi_range_curr < m_multi_range_defined; multi_range_curr++) for(;multi_range_curr < m_multi_range_defined; multi_range_curr++)
{ {
...@@ -5259,7 +5259,7 @@ ha_ndbcluster::setup_recattr(const NdbRecAttr* curr) ...@@ -5259,7 +5259,7 @@ ha_ndbcluster::setup_recattr(const NdbRecAttr* curr)
Field **field, **end; Field **field, **end;
NdbValue *value= m_value; NdbValue *value= m_value;
end= table->field + table->fields; end= table->field + table->s->fields;
for (field= table->field; field < end; field++, value++) for (field= table->field; field < end; field++, value++)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment