Commit 5b55049
committed
fix(adms): change size_in_byte fields from float to int
DocumentSizeInByte and DocContentVersionSizeInByte are Decimal(12) in
the CDS — whole-number byte counts. float allows fractional values that
can never occur and loses precision for files > 2^53 bytes.
Affected fields:
Document.document_size_in_byte: float | None → int | None
DocumentContentVersion.doc_content_version_size_in_byte: float | None → int | None
Test fixture updated: DocumentSizeInByte: 1024.0 → 1024.1 parent 144e727 commit 5b55049
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments