OmniSciDB  a5dc49c757
 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 178 of file ArithmeticIR.cpp.

References Analyzer::ColumnVar::getColumnKey(), and shared::ColumnKey::table_id.

Referenced by CodeGenerator::checkExpressionRanges().

178  {
179  const auto col_expr = dynamic_cast<const Analyzer::ColumnVar*>(expr);
180  if (!col_expr) {
181  return false;
182  }
183  return col_expr->getColumnKey().table_id < 0;
184 }
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 28 of file ArithmeticIR.cpp.

References SQLTypeInfo::is_timeinterval(), and numeric_type_name().

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

29  {
30  if (ti2.is_timeinterval()) {
31  return numeric_type_name(ti2);
32  }
33  return numeric_type_name(ti1);
34 }
bool is_timeinterval() const
Definition: sqltypes.h:594
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: