[FEAT MERGE] Support float/double(m, d) in mysql mode
This commit is contained in:
@ -68,6 +68,7 @@ void TestPkeyRangeSliceCalc::SetUp()
|
||||
ObObjType::ObIntType,
|
||||
ObCmpNullPos::NULL_LAST,
|
||||
ObCollationType::CS_TYPE_BINARY,
|
||||
SCALE_UNKNOWN_YET,
|
||||
false/*is_orace_mode*/);
|
||||
ASSERT_EQ(OB_SUCCESS, sort_cmp_funcs_.push_back(cmp_func));
|
||||
int_datum_.int_ = &tmp_int_;
|
||||
|
||||
@ -254,6 +254,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
ObHashFunc hash_func;
|
||||
if (0 == i) {
|
||||
@ -351,6 +352,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
if (OB_FAIL(spec.sort_cmp_funs_.push_back(cmp_func))) {
|
||||
LOG_WARN("failed to push back sort function", K(ret));
|
||||
|
||||
@ -298,6 +298,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
ObHashFunc hash_func;
|
||||
if (0 == i) {
|
||||
@ -420,6 +421,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
if (OB_FAIL(spec.sort_cmp_funs_.push_back(cmp_func))) {
|
||||
LOG_WARN("failed to push back sort function", K(ret));
|
||||
@ -530,6 +532,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
ObHashFunc hash_func;
|
||||
if (0 == i) {
|
||||
@ -646,6 +649,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
if (OB_FAIL(spec.cmp_funcs_.push_back(cmp_func))) {
|
||||
LOG_WARN("failed to push back sort function", K(ret));
|
||||
|
||||
@ -265,6 +265,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
if (OB_FAIL(spec.sort_cmp_funs_.push_back(cmp_func))) {
|
||||
LOG_WARN("failed to push back sort function", K(ret));
|
||||
@ -359,6 +360,7 @@ public:
|
||||
tmp_type,
|
||||
field_collation.null_pos_,
|
||||
field_collation.cs_type_,
|
||||
SCALE_UNKNOWN_YET,
|
||||
lib::is_oracle_mode());
|
||||
if (OB_FAIL(spec.cmp_funcs_.push_back(cmp_func))) {
|
||||
LOG_WARN("failed to push back sort function", K(ret));
|
||||
|
||||
@ -200,7 +200,7 @@ create index idx_t_idx_c126 on t_idx(c126) LOCAL;
|
||||
create index idx_t_idx_c127 on t_idx(c127) LOCAL;
|
||||
create index idx_t_idx_c128 on t_idx(c128) LOCAL;
|
||||
create index idx_t_idx_c129 on t_idx(c129) LOCAL;
|
||||
create table yuming(c1 float, c2 float, primary key(c1, c2));
|
||||
create table yuming(c1 float(10, 5), c2 float(10, 5), primary key(c1, c2));
|
||||
create table query_range(c1 int, c2 int, c3 int, c4 int, c5 int, primary key(c1, c2, c3));
|
||||
CREATE TABLE query_range1(c1 int(31) NOT NULL, `c2` decimal(5,1) DEFAULT NULL, `c3` int(123) DEFAULT NULL, `c4` int(6) DEFAULT NULL, `c5` int(19) NOT NULL, `c6` int(105) DEFAULT NULL, `c7` tinyint(112) NOT NULL, `c8` decimal(26,6) NOT NULL, `c9` decimal(14,4) NOT NULL, `c10` varbinary(18) DEFAULT NULL, `c11` decimal(35,8) NOT NULL, `c12` int(3) NOT NULL, PRIMARY KEY (`c9`, `c11`, `c8`, `c1`, `c12`, `c7`, `c5`), KEY `i_BX` (`c2`) BLOCK_SIZE 16384);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user