blob: 986bee5ef577dd35d3e74d2ef9548c5aebdedfae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "formatdroptable.h"
#include "parser/ast/sqlitedroptable.h"
FormatDropTable::FormatDropTable(SqliteDropTable* dropTable) :
dropTable(dropTable)
{
}
void FormatDropTable::formatInternal()
{
handleExplainQuery(dropTable);
withKeyword("DROP").withKeyword("TABLE");
if (dropTable->ifExistsKw)
withKeyword("IF").withKeyword("EXISTS");
if (!dropTable->database.isNull())
withId(dropTable->database).withIdDot();
withId(dropTable->table).withSemicolon();
}
|