mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.(none):/opt/local/work/mysql-5.1-27430
This commit is contained in:
@ -114,6 +114,14 @@ public:
|
||||
bool sign() const { return decimal_t::sign; }
|
||||
void sign(bool s) { decimal_t::sign= s; }
|
||||
uint precision() const { return intg + frac; }
|
||||
|
||||
/** Swap two my_decimal values */
|
||||
void swap(my_decimal &rhs)
|
||||
{
|
||||
swap_variables(my_decimal, *this, rhs);
|
||||
/* Swap the buffer pointers back */
|
||||
swap_variables(decimal_digit_t *, buf, rhs.buf);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user