File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ bool RunSql::executeNextStatement()
117
117
query_type == DropStatement ||
118
118
query_type == RollbackStatement ||
119
119
query_type == AttachStatement ||
120
- query_type == DetachStatement))
120
+ query_type == DetachStatement ||
121
+ query_type == AnalyzeStatement))
121
122
structure_updated = true ;
122
123
123
124
// Check whether this is trying to set a pragma or to vacuum the database
@@ -319,6 +320,7 @@ RunSql::StatementType RunSql::getQueryType(const QString& query)
319
320
if (query.startsWith (" CREATE" , Qt::CaseInsensitive)) return CreateStatement;
320
321
if (query.startsWith (" ATTACH" , Qt::CaseInsensitive)) return AttachStatement;
321
322
if (query.startsWith (" DETACH" , Qt::CaseInsensitive)) return DetachStatement;
323
+ if (query.startsWith (" ANALYZE" , Qt::CaseInsensitive)) return AnalyzeStatement;
322
324
323
325
return OtherStatement;
324
326
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class RunSql : public QThread
41
41
CreateStatement,
42
42
AttachStatement,
43
43
DetachStatement,
44
+ AnalyzeStatement,
44
45
OtherStatement,
45
46
};
46
47
You can’t perform that action at this time.
0 commit comments