fix direct load cast number with scale < 0
This commit is contained in:
@ -357,7 +357,8 @@ int ObTableLoadObjCaster::to_type(const ObObjType &expect_type, const share::sch
|
|||||||
if (src.is_null()) {
|
if (src.is_null()) {
|
||||||
dst.set_null();
|
dst.set_null();
|
||||||
} else if (src.get_type_class() == ObStringTC &&
|
} else if (src.get_type_class() == ObStringTC &&
|
||||||
(expect_type == ObNumberType || expect_type == ObUNumberType)) {
|
(expect_type == ObNumberType || expect_type == ObUNumberType) &&
|
||||||
|
accuracy.get_scale() >= 0) {
|
||||||
ObNumberDesc d(0);
|
ObNumberDesc d(0);
|
||||||
uint32_t *digits = nullptr;
|
uint32_t *digits = nullptr;
|
||||||
cast_obj_ctx.number_fast_ctx_.reset();
|
cast_obj_ctx.number_fast_ctx_.reset();
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
11111
|
||||||
|
22222
|
||||||
|
33333
|
||||||
|
44444
|
||||||
|
55555
|
||||||
|
66666
|
||||||
|
77777
|
||||||
|
88888
|
||||||
|
99999
|
|
Reference in New Issue
Block a user