mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 12:59:17 +03:00
extractor: enable numeric for multi table data format (#2977)
This commit is contained in:
parent
2644c98508
commit
141f1e8940
@ -303,10 +303,7 @@ object Queries {
|
||||
)
|
||||
case V.ValueInt64(value) => Fragment("?", value)
|
||||
case V.ValueNumeric(value) =>
|
||||
// FixMe: https://github.com/digital-asset/daml/issues/2289
|
||||
// For now all the ValueNumeric should have scale 10
|
||||
// Check this code once it is possible to create Numerics with different scale
|
||||
Fragment("?::numeric(38,10)", value: BigDecimal)
|
||||
Fragment(s"?::numeric(38,${value.scale})", value: BigDecimal)
|
||||
case V.ValueText(value) => Fragment("?", value)
|
||||
case ts @ V.ValueTimestamp(_) => Fragment("?", ts)
|
||||
case V.ValueParty(value) => Fragment("?", value: String)
|
||||
|
@ -6,6 +6,9 @@ daml 1.2 module PrimitiveTypes where
|
||||
import DA.Date
|
||||
import DA.TextMap as TM
|
||||
|
||||
-- FixMe: https://github.com/digital-asset/daml/issues/2289
|
||||
-- add test for Numerics once the compiler can produce them,
|
||||
|
||||
template BasicPrimitiveTypes
|
||||
with
|
||||
reference: Text
|
||||
|
Loading…
Reference in New Issue
Block a user