HyriseSQLParser/src/lib/destructors.cpp

86 lines
1.1 KiB
C++
Raw Normal View History

2014-11-07 15:21:54 +01:00
#include "sqllib.h"
namespace hsql {
2014-11-26 18:20:10 +01:00
/**
* Statement.h
*/
Statement::~Statement() { /* empty */ }
2014-11-07 15:21:54 +01:00
StatementList::~StatementList() {
delete parser_msg;
}
2014-11-26 18:20:10 +01:00
/**
* ImportStatement.h
*/
2014-11-07 15:21:54 +01:00
ImportStatement::~ImportStatement() {
delete file_path;
delete table_name;
}
2014-11-26 18:20:10 +01:00
/**
* InsertStatement.h
*/
2014-11-26 00:26:20 +01:00
InsertStatement::~InsertStatement() {
delete table_name;
2014-11-26 18:20:10 +01:00
delete columns;
delete values;
2014-11-26 00:26:20 +01:00
delete select;
}
2014-11-26 18:20:10 +01:00
/**
* DeleteStatement.h
*/
DeleteStatement::~DeleteStatement() {
2014-11-26 18:20:10 +01:00
delete table_name;
delete expr;
}
2014-11-26 18:20:10 +01:00
/**
* SelectStatement.h
*/
SelectStatement::~SelectStatement() {
delete from_table;
delete select_list;
delete where_clause;
delete group_by;
delete order;
delete limit;
}
2014-11-17 22:13:11 +01:00
OrderDescription::~OrderDescription() {
delete expr;
}
2014-11-26 18:20:10 +01:00
/**
* CreateStatement.h
*/
CreateStatement::~CreateStatement() {
delete columns;
delete file_path;
delete table_name;
}
ColumnDefinition::~ColumnDefinition() {
delete name;
}
/**
* Table.h
*/
2014-11-17 22:13:11 +01:00
TableRef::~TableRef() {
delete name;
delete alias;
delete select;
delete list;
}
JoinDefinition::~JoinDefinition() {
delete left;
delete right;
delete condition;
}
2014-11-26 18:20:10 +01:00
2014-11-07 15:21:54 +01:00
} // namespace hsql