Make clang-11 ready
This commit is contained in:
parent
1e9f6b50f0
commit
e5eb7a8893
|
@ -30,7 +30,7 @@ namespace hsql {
|
||||||
// Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)"
|
// Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)"
|
||||||
struct CreateStatement : SQLStatement {
|
struct CreateStatement : SQLStatement {
|
||||||
CreateStatement(CreateType type);
|
CreateStatement(CreateType type);
|
||||||
virtual ~CreateStatement();
|
~CreateStatement() override;
|
||||||
|
|
||||||
CreateType type;
|
CreateType type;
|
||||||
bool ifNotExists; // default: false
|
bool ifNotExists; // default: false
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace hsql {
|
||||||
// Note: if (expr == nullptr) => delete all rows (truncate)
|
// Note: if (expr == nullptr) => delete all rows (truncate)
|
||||||
struct DeleteStatement : SQLStatement {
|
struct DeleteStatement : SQLStatement {
|
||||||
DeleteStatement();
|
DeleteStatement();
|
||||||
virtual ~DeleteStatement();
|
~DeleteStatement() override;
|
||||||
|
|
||||||
char* schema;
|
char* schema;
|
||||||
char* tableName;
|
char* tableName;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace hsql {
|
||||||
struct DropStatement : SQLStatement {
|
struct DropStatement : SQLStatement {
|
||||||
|
|
||||||
DropStatement(DropType type);
|
DropStatement(DropType type);
|
||||||
virtual ~DropStatement();
|
~DropStatement() override;
|
||||||
|
|
||||||
DropType type;
|
DropType type;
|
||||||
bool ifExists;
|
bool ifExists;
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace hsql {
|
||||||
// Example: "EXECUTE ins_prep(100, "test", 2.3);"
|
// Example: "EXECUTE ins_prep(100, "test", 2.3);"
|
||||||
struct ExecuteStatement : SQLStatement {
|
struct ExecuteStatement : SQLStatement {
|
||||||
ExecuteStatement();
|
ExecuteStatement();
|
||||||
virtual ~ExecuteStatement();
|
~ExecuteStatement() override;
|
||||||
|
|
||||||
char* name;
|
char* name;
|
||||||
std::vector<Expr*>* parameters;
|
std::vector<Expr*>* parameters;
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace hsql {
|
||||||
// Represents SQL Export statements.
|
// Represents SQL Export statements.
|
||||||
struct ExportStatement : SQLStatement {
|
struct ExportStatement : SQLStatement {
|
||||||
ExportStatement(ImportType type);
|
ExportStatement(ImportType type);
|
||||||
virtual ~ExportStatement();
|
~ExportStatement() override;
|
||||||
|
|
||||||
// ImportType is used for compatibility reasons
|
// ImportType is used for compatibility reasons
|
||||||
ImportType type;
|
ImportType type;
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
||||||
// Represents SQL Import statements.
|
// Represents SQL Import statements.
|
||||||
struct ImportStatement : SQLStatement {
|
struct ImportStatement : SQLStatement {
|
||||||
ImportStatement(ImportType type);
|
ImportStatement(ImportType type);
|
||||||
virtual ~ImportStatement();
|
~ImportStatement() override;
|
||||||
|
|
||||||
ImportType type;
|
ImportType type;
|
||||||
char* filePath;
|
char* filePath;
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
||||||
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
|
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
|
||||||
struct InsertStatement : SQLStatement {
|
struct InsertStatement : SQLStatement {
|
||||||
InsertStatement(InsertType type);
|
InsertStatement(InsertType type);
|
||||||
virtual ~InsertStatement();
|
~InsertStatement() override;
|
||||||
|
|
||||||
InsertType type;
|
InsertType type;
|
||||||
char* schema;
|
char* schema;
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace hsql {
|
||||||
// Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;'
|
// Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;'
|
||||||
struct PrepareStatement : SQLStatement {
|
struct PrepareStatement : SQLStatement {
|
||||||
PrepareStatement();
|
PrepareStatement();
|
||||||
virtual ~PrepareStatement();
|
~PrepareStatement() override;
|
||||||
|
|
||||||
char* name;
|
char* name;
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ namespace hsql {
|
||||||
// Representation of a full SQL select statement.
|
// Representation of a full SQL select statement.
|
||||||
struct SelectStatement : SQLStatement {
|
struct SelectStatement : SQLStatement {
|
||||||
SelectStatement();
|
SelectStatement();
|
||||||
virtual ~SelectStatement();
|
~SelectStatement() override;
|
||||||
|
|
||||||
TableRef* fromTable;
|
TableRef* fromTable;
|
||||||
bool selectDistinct;
|
bool selectDistinct;
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace hsql {
|
||||||
struct ShowStatement : SQLStatement {
|
struct ShowStatement : SQLStatement {
|
||||||
|
|
||||||
ShowStatement(ShowType type);
|
ShowStatement(ShowType type);
|
||||||
virtual ~ShowStatement();
|
~ShowStatement() override;
|
||||||
|
|
||||||
ShowType type;
|
ShowType type;
|
||||||
char* schema;
|
char* schema;
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace hsql {
|
||||||
|
|
||||||
struct TransactionStatement : SQLStatement {
|
struct TransactionStatement : SQLStatement {
|
||||||
TransactionStatement(TransactionCommand command);
|
TransactionStatement(TransactionCommand command);
|
||||||
virtual ~TransactionStatement();
|
~TransactionStatement() override;
|
||||||
|
|
||||||
TransactionCommand command;
|
TransactionCommand command;
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
||||||
// Represents SQL Update statements.
|
// Represents SQL Update statements.
|
||||||
struct UpdateStatement : SQLStatement {
|
struct UpdateStatement : SQLStatement {
|
||||||
UpdateStatement();
|
UpdateStatement();
|
||||||
virtual ~UpdateStatement();
|
~UpdateStatement() override;
|
||||||
|
|
||||||
// TODO: switch to char* instead of TableRef
|
// TODO: switch to char* instead of TableRef
|
||||||
TableRef* table;
|
TableRef* table;
|
||||||
|
|
Loading…
Reference in New Issue