/src/duckdb/src/parser/base_expression.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | #include "duckdb/parser/base_expression.hpp" |
2 | | |
3 | | #include "duckdb/main/config.hpp" |
4 | | #include "duckdb/common/printer.hpp" |
5 | | |
6 | | namespace duckdb { |
7 | | |
8 | 0 | void BaseExpression::Print() const { |
9 | 0 | Printer::Print(ToString()); |
10 | 0 | } |
11 | | |
12 | 3.11M | string BaseExpression::GetName() const { |
13 | | #ifdef DEBUG |
14 | | if (DBConfigOptions::debug_print_bindings) { |
15 | | return ToString(); |
16 | | } |
17 | | #endif |
18 | 3.11M | return !alias.empty() ? alias : ToString(); |
19 | 3.11M | } |
20 | | |
21 | 4.49M | bool BaseExpression::Equals(const BaseExpression &other) const { |
22 | 4.49M | if (expression_class != other.expression_class || type != other.type) { |
23 | 81.5k | return false; |
24 | 81.5k | } |
25 | 4.41M | return true; |
26 | 4.49M | } |
27 | | |
28 | 3.46k | void BaseExpression::Verify() const { |
29 | 3.46k | } |
30 | | |
31 | | } // namespace duckdb |