MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / testAndSetValue

Function testAndSetValue

src/function/cast_from_string_functions.cpp:669–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667// ---------------------- cast String to Union ------------------------------ //
668template<typename T>
669static inline void testAndSetValue(ValueVector* vector, uint64_t rowToAdd, T result, bool success) {
670 if (success) {
671 vector->setValue(rowToAdd, result);
672 }
673}
674
675static bool tryCastUnionField(ValueVector* vector, uint64_t rowToAdd, const char* input,
676 uint64_t len) {

Callers 1

tryCastUnionFieldFunction · 0.85

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected