blob: 9ff6324ccaba8c0d9e1eef49c626e5011d687efe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "formatdropindex.h"
#include "parser/ast/sqlitedropindex.h"
FormatDropIndex::FormatDropIndex(SqliteDropIndex* dropIndex) :
dropIndex(dropIndex)
{
}
void FormatDropIndex::formatInternal()
{
handleExplainQuery(dropIndex);
withKeyword("DROP").withKeyword("INDEX");
if (dropIndex->ifExistsKw)
withKeyword("IF").withKeyword("EXISTS");
if (!dropIndex->database.isNull())
withId(dropIndex->database).withIdDot();
withId(dropIndex->index).withSemicolon();
}
|