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

  
This patch changes the code to comply with different word order on Solaris
parent 93f766dd
......@@ -122,8 +122,12 @@ public:
These types store two bytes.
*/
uint16 *x= (uint16 *)&field_metadata[index];
#ifdef WORDS_BIGENDIAN
m_field_metadata[i]= sint2korr(x);
#else
m_field_metadata[i]= *x;
index= index + sizeof(short int);
#endif
index= index + sizeof(short);
break;
}
case MYSQL_TYPE_NEWDECIMAL:
......
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