| 344 | } |
| 345 | |
| 346 | void conversion_error(ReadContext &ctx, uint32_t remote_type_id, |
| 347 | uint32_t local_type_id, std::string_view field, |
| 348 | std::string_view reason) { |
| 349 | ctx.set_error(Error::invalid_data( |
| 350 | "Cannot convert compatible field `" + std::string(field) + "` from " + |
| 351 | type_name(remote_type_id) + " to " + type_name(local_type_id) + ": " + |
| 352 | std::string(reason))); |
| 353 | } |
| 354 | |
| 355 | bool canonical_decimal(BigUInt magnitude, bool negative, int64_t scale64, |
| 356 | Decimal &out) { |
no test coverage detected