OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{CastIR.cpp} Namespace Reference

Functions

bool byte_array_cast (const SQLTypeInfo &operand_ti, const SQLTypeInfo &ti)
 

Function Documentation

bool anonymous_namespace{CastIR.cpp}::byte_array_cast ( const SQLTypeInfo operand_ti,
const SQLTypeInfo ti 
)

Definition at line 46 of file CastIR.cpp.

References SQLTypeInfoCore< TYPE_FACET_PACK >::get_size(), SQLTypeInfoCore< TYPE_FACET_PACK >::get_subtype(), SQLTypeInfoCore< TYPE_FACET_PACK >::is_array(), and kTINYINT.

Referenced by CodeGenerator::codegenCast().

46  {
47  return (operand_ti.is_array() && ti.is_array() && ti.get_subtype() == kTINYINT &&
48  operand_ti.get_size() > 0 && operand_ti.get_size() == ti.get_size());
49 }
HOST DEVICE int get_size() const
Definition: sqltypes.h:336
bool is_array() const
Definition: sqltypes.h:485
HOST DEVICE SQLTypes get_subtype() const
Definition: sqltypes.h:327

+ Here is the call graph for this function:

+ Here is the caller graph for this function: