OmniSciDB  dfae7c3b14
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 176 of file ArithmeticIR.cpp.

References Analyzer::ColumnVar::get_table_id().

Referenced by CodeGenerator::checkExpressionRanges().

176  {
177  const auto col_expr = dynamic_cast<const Analyzer::ColumnVar*>(expr);
178  if (!col_expr) {
179  return false;
180  }
181  return col_expr->get_table_id() < 0;
182 }
int get_table_id() const
Definition: Analyzer.h:194
+ 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 SQLTypeInfo::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:428
std::string numeric_type_name(const SQLTypeInfo &ti)
Definition: Execute.h:172
+ Here is the call graph for this function:
+ Here is the caller graph for this function: