Commit b5778c1c authored by unknown's avatar unknown
Browse files

Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1

into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1

parents 17c49b61 a3f7796d
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -304,7 +304,9 @@ inline
Int64
NdbRecAttr::int64_value() const 
{
  return *(Int64*)theRef;
  Int64 val;
  memcpy(&val,theRef,8);
  return val;
}

inline
@@ -332,7 +334,9 @@ inline
Uint64
NdbRecAttr::u_64_value() const
{
  return *(Uint64*)theRef;
  Uint64 val;
  memcpy(&val,theRef,8);
  return val;
}

inline
@@ -360,14 +364,18 @@ inline
float
NdbRecAttr::float_value() const
{
  return *(float*)theRef;
  float val;
  memcpy(&val,theRef,sizeof(val));
  return val;
}

inline
double
NdbRecAttr::double_value() const
{
  return *(double*)theRef;
  double val;
  memcpy(&val,theRef,sizeof(val));
  return val;
}

inline