mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
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:
parent
259fd48560
commit
3c631d7b7b
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue