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.
This commit is contained in:
unknown 2007-07-28 11:30:50 -04:00
parent 372c9a7743
commit 259fd48560

View file

@ -110,13 +110,19 @@ public:
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;
}