mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
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:
parent
372c9a7743
commit
259fd48560
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue