mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1194023 - Part 1: Filter out warnings about sort operations on CREATE INDEX statements. r=mak
This commit is contained in:
parent
e802150ad2
commit
851d21cbb6
@ -94,6 +94,11 @@ checkAndLogStatementPerformance(sqlite3_stmt *aStatement)
|
||||
if (::strstr(sql, "/* do not warn (bug "))
|
||||
return;
|
||||
|
||||
// CREATE INDEX always sorts (sorting is a necessary step in creating
|
||||
// an index). So ignore the warning there.
|
||||
if (::strstr(sql, "CREATE INDEX") || ::strstr(sql, "CREATE UNIQUE INDEX"))
|
||||
return;
|
||||
|
||||
nsAutoCString message("Suboptimal indexes for the SQL statement ");
|
||||
#ifdef MOZ_STORAGE_SORTWARNING_SQL_DUMP
|
||||
message.Append('`');
|
||||
|
Loading…
Reference in New Issue
Block a user