Commit 3c631d7b authored by unknown's avatar unknown

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 259fd485
...@@ -122,8 +122,12 @@ class table_def ...@@ -122,8 +122,12 @@ class table_def
These types store two bytes. These types store two bytes.
*/ */
uint16 *x= (uint16 *)&field_metadata[index]; uint16 *x= (uint16 *)&field_metadata[index];
#ifdef WORDS_BIGENDIAN
m_field_metadata[i]= sint2korr(x);
#else
m_field_metadata[i]= *x; m_field_metadata[i]= *x;
index= index + sizeof(short int); #endif
index= index + sizeof(short);
break; break;
} }
case MYSQL_TYPE_NEWDECIMAL: 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