|
| template<class SRC, class DST> |
| static bool | Operation (SRC input, DST &result, bool strict=false) |
◆ Operation() [1/3]
template<class SRC, class DST>
| bool duckdb::TryCastToTimestampMS::Operation |
( |
SRC | input, |
|
|
DST & | result, |
|
|
bool | strict = false ) |
|
inlinestatic |
31891 {
31892 throw InternalException("Unsupported type for try cast to timestamp (ms)");
31893 }
◆ Operation() [2/3]
template<>
| bool duckdb::TryCastToTimestampMS::Operation |
( |
string_t | input, |
|
|
timestamp_t & | result, |
|
|
bool | strict ) |
89963 {
89964 if (!TryCast::Operation<string_t, timestamp_t>(input, result, strict)) {
89965 return false;
89966 }
89967 result = CastTimestampUsToMs::Operation<timestamp_t, timestamp_t>(result);
89968 return true;
89969}
◆ Operation() [3/3]
template<>
| bool duckdb::TryCastToTimestampMS::Operation |
( |
date_t | input, |
|
|
timestamp_t & | result, |
|
|
bool | strict ) |
89995 {
89996 if (!TryCast::Operation<date_t, timestamp_t>(input, result, strict)) {
89997 return false;
89998 }
90000 return true;
90001 }
90002 result.value /= Interval::MICROS_PER_MSEC;
90003 return true;
90004}
static bool IsFinite(timestamp_t timestamp)
True, if the timestamp is finite, else false.
Definition duckdb.hpp:4287
The documentation for this struct was generated from the following file: