Initialize all fields in Expr struct

This commit is contained in:
Nan Xiao 2017-08-01 13:58:22 +08:00
parent 2b27b27554
commit e7c2833e43
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,12 @@ namespace hsql {
select(nullptr), select(nullptr),
name(nullptr), name(nullptr),
table(nullptr), table(nullptr),
alias(nullptr) {}; alias(nullptr),
fval(0),
ival(0),
ival2(0),
opType(kOpNone),
distinct(false) {};
Expr::~Expr() { Expr::~Expr() {
delete expr; delete expr;