|
|
template<> |
| bool | Operation (string_t input, bool &result, CastParameters ¶meters) |
|
template<> |
| bool | Operation (string_t input, hugeint_t &result, CastParameters ¶meters) |
|
template<> |
| bool | Operation (string_t input, uhugeint_t &result, CastParameters ¶meters) |
| template<> |
| bool | Operation (string_t input, bool &result, CastParameters ¶meters) |
| template<> |
| bool | Operation (string_t input, hugeint_t &result, CastParameters ¶meters) |
| template<> |
| bool | Operation (string_t input, uhugeint_t &result, CastParameters ¶meters) |
|
| template<class SRC = string_t, class DST> |
| static bool | Operation (SRC input, DST &result, CastParameters ¶meters) |
◆ Operation() [1/4]
template<class SRC = string_t, class DST>
| bool duckdb::CastFromBitToNumeric::Operation |
( |
SRC | input, |
|
|
DST & | result, |
|
|
CastParameters & | parameters ) |
|
inlinestatic |
32160 {
32161 D_ASSERT(input.GetSize() > 1);
32162
32163
32164
32165 if (input.GetSize() - 1 > sizeof(DST)) {
32166 throw ConversionException(parameters.query_location, "Bitstring doesn't fit inside of %s",
32168 }
32170 return (true);
32171 }
static void BitToNumeric(bitstring_t bit, T &output_num)
bit is expected to fit inside of output num (bit size <= sizeof(T) + 1)
Definition duckdb.cpp:31142
PhysicalType GetTypeId()
Returns the PhysicalType for the given type.
Definition duckdb.hpp:10381
◆ Operation() [2/4]
90112 {
90113 D_ASSERT(input.GetSize() > 1);
90114
90116 bool success = CastFromBitToNumeric::Operation(input, value, parameters);
90117 result = (value > 0);
90118 return (success);
90119}
◆ Operation() [3/4]
90122 {
90123 D_ASSERT(input.GetSize() > 1);
90124
90125 if (input.GetSize() - 1 > sizeof(hugeint_t)) {
90126 throw ConversionException(parameters.query_location, "Bitstring doesn't fit inside of %s",
90128 }
90130 return (true);
90131}
◆ Operation() [4/4]
90134 {
90135 D_ASSERT(input.GetSize() > 1);
90136
90137 if (input.GetSize() - 1 > sizeof(uhugeint_t)) {
90138 throw ConversionException(parameters.query_location, "Bitstring doesn't fit inside of %s",
90140 }
90142 return (true);
90143}
The documentation for this struct was generated from the following file: