define USING_LOG_PREFIX RPC_TEST
include
include “rpc/obmysql/ob_mysql_util.h”
using namespace oceanbase::common;
using namespace oceanbase::obmysql;
class TestDoubleZeroFill
: public ::testing::Test
{
public:
TestDoubleZeroFill()
{}
virtual void SetUp()
{
}
virtual void TearDown()
{
}
void zero_fill_libraries(char *buf, int64_t &length, int16_t scale)
{
if (scale > 0) {
int point = 0;
const char *findponit = buf;
const char *pot = strchr(findponit,’.’);
if (pot !=NULL)
{
point = static_cast(pot - findponit);
} else {
point = static_cast(length);
}
if (point == length) {
// *(buf + length) = ‘.’;
memcpy(buf+ length, “.”, 1)