OmniSciDB  5ade3759e0
anonymous_namespace{ArithmeticIR.cpp} Namespace Reference

Functions

std::string numeric_or_time_interval_type_name (const SQLTypeInfo &ti1, const SQLTypeInfo &ti2)
 
bool is_temporary_column (const Analyzer::Expr *expr)
 

Function Documentation

◆ is_temporary_column()

bool anonymous_namespace{ArithmeticIR.cpp}::is_temporary_column ( const Analyzer::Expr expr)

Definition at line 173 of file ArithmeticIR.cpp.

References Analyzer::ColumnVar::get_table_id().

Referenced by CodeGenerator::checkExpressionRanges().

173  {
174  const auto col_expr = dynamic_cast<const Analyzer::ColumnVar*>(expr);
175  if (!col_expr) {
176  return false;
177  }
178  return col_expr->get_table_id() < 0;
179 }
int get_table_id() const
Definition: Analyzer.h:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numeric_or_time_interval_type_name()

std::string anonymous_namespace{ArithmeticIR.cpp}::numeric_or_time_interval_type_name ( const SQLTypeInfo ti1,
const SQLTypeInfo ti2 
)

Definition at line 26 of file ArithmeticIR.cpp.

References SQLTypeInfoCore< TYPE_FACET_PACK >::is_timeinterval(), and numeric_type_name().

Referenced by CodeGenerator::codegenDeciDiv(), and CodeGenerator::codegenIntArith().

27  {
28  if (ti2.is_timeinterval()) {
29  return numeric_type_name(ti2);
30  }
31  return numeric_type_name(ti1);
32 }
bool is_timeinterval() const
Definition: sqltypes.h:461
std::string numeric_type_name(const SQLTypeInfo &ti)
Definition: Execute.h:157
+ Here is the call graph for this function:
+ Here is the caller graph for this function: