forked from blackbeam/rust_mysql_common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrapper.cc
More file actions
26 lines (21 loc) · 655 Bytes
/
wrapper.cc
File metadata and controls
26 lines (21 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "wrapper.hh"
int c_string2decimal(const char *from, decimal_t *to, const char **end)
{
return string2decimal(from, to, end);
}
int c_decimal2string(const decimal_t *from, char *to, int *to_len)
{
return decimal2string(from, to, to_len);
}
int c_decimal2bin(const decimal_t *from, uchar *to, int precision, int scale)
{
return decimal2bin(from, to, precision, scale);
}
int c_bin2decimal(const uchar *from, decimal_t *to, int precision, int scale, bool keep_prec)
{
return bin2decimal(from, to, precision, scale, keep_prec);
}
int c_decimal_bin_size(int precision, int scale)
{
return decimal_bin_size(precision, scale);
}