You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4530: toCppCode() method for ParseTree and TreeNode (#2777)
* toCppCode for ParseTree and TreeNode * generated tree is compiling * Put tree constructors into tests * Minor fixes * Fixed parse + some constructors * Fixed includes, removed debug and old data * Hopefully fix clang errors * Forgot an override * More overrides
This commit is contained in:
@ -275,6 +275,16 @@ const string SimpleColumn::toString() const
|
||||
return output.str();
|
||||
}
|
||||
|
||||
string SimpleColumn::toCppCode(IncludeSet& includes) const
|
||||
{
|
||||
includes.insert("simplecolumn.h");
|
||||
stringstream ss;
|
||||
|
||||
ss << "SimpleColumn(" << std::quoted(fData) << ", SimpleColumn::ForTestPurposeWithoutOID{})";
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void SimpleColumn::parse(const string& token)
|
||||
{
|
||||
// get schema name, table name and column name for token.
|
||||
@ -379,7 +389,6 @@ void SimpleColumn::unserialize(messageqcpp::ByteStream& b)
|
||||
b >> reinterpret_cast<ByteStream::doublebyte&>(fisColumnStore);
|
||||
}
|
||||
|
||||
|
||||
bool SimpleColumn::operator==(const SimpleColumn& t) const
|
||||
{
|
||||
const ReturnedColumn *rc1, *rc2;
|
||||
|
Reference in New Issue
Block a user