Class Analyzer::Constant

class Constant : public Analyzer::Expr

Public Functions

Constant(SQLTypes t, bool n)
Constant(SQLTypes t, bool n, Datum v)
Constant(const SQLTypeInfo &ti, bool n, Datum v)
Constant(const SQLTypeInfo &ti, bool n, const std::list<std::shared_ptr<Analyzer::Expr>> &l)
~Constant()
bool get_is_null() const
Datum get_constval() const
void set_constval(Datum d)
const std::list<std::shared_ptr<Analyzer::Expr>> &get_value_list() const
std::shared_ptr<Analyzer::Expr> deep_copy() const
std::shared_ptr<Analyzer::Expr> add_cast(const SQLTypeInfo &new_type_info)
bool operator==(const Expr &rhs) const
std::string toString() const

Protected Functions

void cast_number(const SQLTypeInfo &new_type_info)
void cast_string(const SQLTypeInfo &new_type_info)
void cast_from_string(const SQLTypeInfo &new_type_info)
void cast_to_string(const SQLTypeInfo &new_type_info)
void do_cast(const SQLTypeInfo &new_type_info)
void set_null_value()

Protected Attributes

bool is_null
Datum constval
const std::list<std::shared_ptr<Analyzer::Expr>> value_list