MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getScale

Function getScale

src/jrd/SysFunction.cpp:2356–2365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2354
2355template <typename HUGEINT>
2356HUGEINT 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
2368static void appendFromBlob(thread_db* tdbb, jrd_tra* transaction, blb* blob,

Callers 1

makeKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected