fix direct load cast number with scale < 0
This commit is contained in:
parent
23638d1dd8
commit
9876e25006
@ -357,7 +357,8 @@ int ObTableLoadObjCaster::to_type(const ObObjType &expect_type, const share::sch
|
||||
if (src.is_null()) {
|
||||
dst.set_null();
|
||||
} 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);
|
||||
uint32_t *digits = nullptr;
|
||||
cast_obj_ctx.number_fast_ctx_.reset();
|
||||
|
@ -0,0 +1,9 @@
|
||||
11111
|
||||
22222
|
||||
33333
|
||||
44444
|
||||
55555
|
||||
66666
|
||||
77777
|
||||
88888
|
||||
99999
|
|
Loading…
x
Reference in New Issue
Block a user