OmniSciDB  8a228a1076
anonymous_namespace{CastIR.cpp} Namespace Reference


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

Function Documentation

◆ byte_array_cast()

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

Definition at line 47 of file CastIR.cpp.

References SQLTypeInfo::get_size(), SQLTypeInfo::get_subtype(), SQLTypeInfo::is_array(), and kTINYINT.

Referenced by CodeGenerator::codegenCast().

47  {
48  return (operand_ti.is_array() && ti.is_array() && ti.get_subtype() == kTINYINT &&
49  operand_ti.get_size() > 0 && operand_ti.get_size() == ti.get_size());
50 }
bool is_array() const
Definition: sqltypes.h:424
HOST DEVICE int get_size() const
Definition: sqltypes.h:269
HOST DEVICE SQLTypes get_subtype() const
Definition: sqltypes.h:260
+ Here is the call graph for this function:
+ Here is the caller graph for this function: