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

Patch for PB testing errors.
parent 06df6fc1
...@@ -110,13 +110,19 @@ class table_def ...@@ -110,13 +110,19 @@ class table_def
break; break;
} }
case MYSQL_TYPE_BIT: 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: case MYSQL_TYPE_VARCHAR:
{ {
/* /*
These types store two bytes. These types store two bytes.
*/ */
short int *x= (short int *)&field_metadata[index]; uint16 *x= (uint16 *)&field_metadata[index];
m_field_metadata[i]= sint2korr(x); m_field_metadata[i]= *x;
index= index + sizeof(short int); index= index + sizeof(short int);
break; 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