mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
This commit is contained in:
commit
04a23e22d4
1 changed files with 12 additions and 4 deletions
|
@ -312,7 +312,9 @@ inline
|
|||
Int64
|
||||
NdbRecAttr::int64_value() const
|
||||
{
|
||||
return *(Int64*)theRef;
|
||||
Int64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
|
@ -340,7 +342,9 @@ inline
|
|||
Uint64
|
||||
NdbRecAttr::u_64_value() const
|
||||
{
|
||||
return *(Uint64*)theRef;
|
||||
Uint64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
|
@ -368,14 +372,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
|
||||
|
|
Loading…
Reference in a new issue