OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Definition at line 176 of file ArithmeticIR.cpp.

References Analyzer::ColumnVar::getColumnKey(), and shared::ColumnKey::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->getColumnKey().table_id < 0;
182 }
const shared::ColumnKey & getColumnKey() const
Definition: Analyzer.h:198

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:592
std::string numeric_type_name(const SQLTypeInfo &ti)
Definition: Execute.h:230

+ Here is the call graph for this function:

+ Here is the caller graph for this function: