Compare commits

...

2 Commits

Author SHA1 Message Date
vaclavt
f3a43fdafc better error message 2022-05-23 19:28:33 +02:00
vaclavt
4074c541c3 formating 2022-05-23 19:28:15 +02:00
2 changed files with 4 additions and 5 deletions

View File

@@ -175,9 +175,6 @@ struct FunctionNode : Node {
};
Type function;
std::vector<std::unique_ptr<Node>> params;
FunctionNode(std::string func_name, std::vector<std::unique_ptr<Node>> pars) :
Node(NodeType::function), function(get_function(func_name)), params(std::move(pars)) {}
@@ -199,6 +196,9 @@ struct FunctionNode : Node {
}
std::cout << ")" << std::endl;
}
Type function;
std::vector<std::unique_ptr<Node>> params;
};
struct TrueNode : Node {
@@ -581,7 +581,6 @@ struct CreateIndexNode : Node {
};
class Parser {
private:
public:
Parser();

2
row.h
View File

@@ -171,7 +171,7 @@ public:
case 5:
return (ColValue &) *std::get_if<ColBooleanValue>(&m_columns[i]);
default:
throw Exception("should not happen");
throw Exception("ColValue &operator[](int i), type index invalid :" + std::to_string(type_index));
}
}