/src/sql-parser/src/sql/SQLStatement.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | |
2 | | #include "SQLStatement.h" |
3 | | |
4 | | namespace hsql { |
5 | | |
6 | | // SQLStatement |
7 | 157k | SQLStatement::SQLStatement(StatementType type) : hints(nullptr), type_(type) {} |
8 | | |
9 | 123k | SQLStatement::~SQLStatement() { |
10 | 123k | if (hints) { |
11 | 1.61k | for (Expr* hint : *hints) { |
12 | 1.61k | delete hint; |
13 | 1.61k | } |
14 | 1.05k | } |
15 | 123k | delete hints; |
16 | 123k | } |
17 | | |
18 | 0 | StatementType SQLStatement::type() const { return type_; } |
19 | | |
20 | 0 | bool SQLStatement::isType(StatementType type) const { return (type_ == type); } |
21 | | |
22 | 0 | bool SQLStatement::is(StatementType type) const { return isType(type); } |
23 | | |
24 | | } // namespace hsql |