mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
This commit is contained in:
commit
598a126118
2 changed files with 32 additions and 36 deletions
|
@ -308,15 +308,6 @@ NdbRecAttr::arraySize() const
|
|||
return theArraySize;
|
||||
}
|
||||
|
||||
inline
|
||||
Int64
|
||||
NdbRecAttr::int64_value() const
|
||||
{
|
||||
Int64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
Int32
|
||||
NdbRecAttr::int32_value() const
|
||||
|
@ -338,15 +329,6 @@ NdbRecAttr::char_value() const
|
|||
return *(char*)theRef;
|
||||
}
|
||||
|
||||
inline
|
||||
Uint64
|
||||
NdbRecAttr::u_64_value() const
|
||||
{
|
||||
Uint64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
NdbRecAttr::u_32_value() const
|
||||
|
@ -368,24 +350,6 @@ NdbRecAttr::u_char_value() const
|
|||
return *(Uint8*)theRef;
|
||||
}
|
||||
|
||||
inline
|
||||
float
|
||||
NdbRecAttr::float_value() const
|
||||
{
|
||||
float val;
|
||||
memcpy(&val,theRef,sizeof(val));
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
double
|
||||
NdbRecAttr::double_value() const
|
||||
{
|
||||
double val;
|
||||
memcpy(&val,theRef,sizeof(val));
|
||||
return val;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
NdbRecAttr::release()
|
||||
|
|
|
@ -281,3 +281,35 @@ NdbOut& operator<<(NdbOut& out, const NdbRecAttr &r)
|
|||
|
||||
return out;
|
||||
}
|
||||
|
||||
Int64
|
||||
NdbRecAttr::int64_value() const
|
||||
{
|
||||
Int64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
Uint64
|
||||
NdbRecAttr::u_64_value() const
|
||||
{
|
||||
Uint64 val;
|
||||
memcpy(&val,theRef,8);
|
||||
return val;
|
||||
}
|
||||
|
||||
float
|
||||
NdbRecAttr::float_value() const
|
||||
{
|
||||
float val;
|
||||
memcpy(&val,theRef,sizeof(val));
|
||||
return val;
|
||||
}
|
||||
|
||||
double
|
||||
NdbRecAttr::double_value() const
|
||||
{
|
||||
double val;
|
||||
memcpy(&val,theRef,sizeof(val));
|
||||
return val;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue