diff options
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatvacuum.cpp')
| -rw-r--r-- | Plugins/SqlEnterpriseFormatter/formatvacuum.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/formatvacuum.cpp b/Plugins/SqlEnterpriseFormatter/formatvacuum.cpp index 8cbff57..2bea793 100644 --- a/Plugins/SqlEnterpriseFormatter/formatvacuum.cpp +++ b/Plugins/SqlEnterpriseFormatter/formatvacuum.cpp @@ -1,5 +1,6 @@ #include "formatvacuum.h" #include "parser/ast/sqlitevacuum.h" +#include "parser/ast/sqliteexpr.h" FormatVacuum::FormatVacuum(SqliteVacuum* vacuum) : vacuum(vacuum) @@ -10,4 +11,9 @@ void FormatVacuum::formatInternal() { handleExplainQuery(vacuum); withKeyword("VACUUM").withSemicolon(); + if (!vacuum->database.isNull()) + withId(vacuum->database); + + if (vacuum->expr) + withKeyword("INTO").withStatement(vacuum->expr); } |
