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

This patch changes the code to comply with different word order on Solaris
This commit is contained in:
unknown 2007-07-28 18:46:21 -04:00
parent 259fd48560
commit 3c631d7b7b

View file

@ -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: