Commit 4140facd authored by unknown's avatar unknown

WL#3228 (NDB) : RBR using different table defs on slave/master

Patch for PB testing errors.


sql/rpl_utility.h:
  WL#3228 (NDB) : RBR using different table defs on slave/master
  
  This patch corrects a problem detected on 64-bit platforms with BIT and
  VARCHAR fields.
parent c8e1c4ef
......@@ -110,13 +110,19 @@ class table_def
break;
}
case MYSQL_TYPE_BIT:
{
short int x= field_metadata[index++];
x = x + (field_metadata[index++] << 8U);
m_field_metadata[i]= x;
break;
}
case MYSQL_TYPE_VARCHAR:
{
/*
These types store two bytes.
*/
short int *x= (short int *)&field_metadata[index];
m_field_metadata[i]= sint2korr(x);
uint16 *x= (uint16 *)&field_metadata[index];
m_field_metadata[i]= *x;
index= index + sizeof(short int);
break;
}
......
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