Make clang-11 ready

This commit is contained in:
Markus Dreseler 2020-10-19 15:07:45 +02:00
parent 1e9f6b50f0
commit e5eb7a8893
12 changed files with 13 additions and 13 deletions

View File

@ -30,7 +30,7 @@ namespace hsql {
// Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)"
struct CreateStatement : SQLStatement {
CreateStatement(CreateType type);
virtual ~CreateStatement();
~CreateStatement() override;
CreateType type;
bool ifNotExists; // default: false

View File

@ -11,7 +11,7 @@ namespace hsql {
// Note: if (expr == nullptr) => delete all rows (truncate)
struct DeleteStatement : SQLStatement {
DeleteStatement();
virtual ~DeleteStatement();
~DeleteStatement() override;
char* schema;
char* tableName;

View File

@ -19,7 +19,7 @@ namespace hsql {
struct DropStatement : SQLStatement {
DropStatement(DropType type);
virtual ~DropStatement();
~DropStatement() override;
DropType type;
bool ifExists;

View File

@ -9,7 +9,7 @@ namespace hsql {
// Example: "EXECUTE ins_prep(100, "test", 2.3);"
struct ExecuteStatement : SQLStatement {
ExecuteStatement();
virtual ~ExecuteStatement();
~ExecuteStatement() override;
char* name;
std::vector<Expr*>* parameters;

View File

@ -8,7 +8,7 @@ namespace hsql {
// Represents SQL Export statements.
struct ExportStatement : SQLStatement {
ExportStatement(ImportType type);
virtual ~ExportStatement();
~ExportStatement() override;
// ImportType is used for compatibility reasons
ImportType type;

View File

@ -14,7 +14,7 @@ namespace hsql {
// Represents SQL Import statements.
struct ImportStatement : SQLStatement {
ImportStatement(ImportType type);
virtual ~ImportStatement();
~ImportStatement() override;
ImportType type;
char* filePath;

View File

@ -14,7 +14,7 @@ namespace hsql {
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
struct InsertStatement : SQLStatement {
InsertStatement(InsertType type);
virtual ~InsertStatement();
~InsertStatement() override;
InsertType type;
char* schema;

View File

@ -9,7 +9,7 @@ namespace hsql {
// Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;'
struct PrepareStatement : SQLStatement {
PrepareStatement();
virtual ~PrepareStatement();
~PrepareStatement() override;
char* name;

View File

@ -67,7 +67,7 @@ namespace hsql {
// Representation of a full SQL select statement.
struct SelectStatement : SQLStatement {
SelectStatement();
virtual ~SelectStatement();
~SelectStatement() override;
TableRef* fromTable;
bool selectDistinct;

View File

@ -16,7 +16,7 @@ namespace hsql {
struct ShowStatement : SQLStatement {
ShowStatement(ShowType type);
virtual ~ShowStatement();
~ShowStatement() override;
ShowType type;
char* schema;

View File

@ -15,7 +15,7 @@ namespace hsql {
struct TransactionStatement : SQLStatement {
TransactionStatement(TransactionCommand command);
virtual ~TransactionStatement();
~TransactionStatement() override;
TransactionCommand command;
};

View File

@ -14,7 +14,7 @@ namespace hsql {
// Represents SQL Update statements.
struct UpdateStatement : SQLStatement {
UpdateStatement();
virtual ~UpdateStatement();
~UpdateStatement() override;
// TODO: switch to char* instead of TableRef
TableRef* table;