| 2354 | |
| 2355 | template <typename HUGEINT> |
| 2356 | HUGEINT getScale(impure_value* impure) |
| 2357 | { |
| 2358 | HUGEINT scale = 1; |
| 2359 | |
| 2360 | fb_assert(impure->vlu_desc.dsc_scale <= 0); |
| 2361 | for (int i = -impure->vlu_desc.dsc_scale; i > 0; --i) |
| 2362 | scale *= 10; |
| 2363 | |
| 2364 | return scale; |
| 2365 | } |
| 2366 | |
| 2367 | |
| 2368 | static void appendFromBlob(thread_db* tdbb, jrd_tra* transaction, blb* blob, |