Migrate buildSearchPostFilterClause to use Squirrel (#19583)

Automatic Merge
Этот коммит содержится в:
Kitae Kim
2022-03-03 18:34:18 +09:00
коммит произвёл GitHub
родитель ab8de49f0a
Коммит aefd6c8e0f
2 изменённых файлов: 82 добавлений и 105 удалений

Просмотреть файл

@@ -968,6 +968,11 @@ func (ss *SqlStore) getQueryBuilder() sq.StatementBuilderType {
return builder
}
// getSubQueryBuilder is necessary to generate the SQL query and args to pass to sub-queries because squirrel does not support WHERE clause in sub-queries.
func (ss *SqlStore) getSubQueryBuilder() sq.StatementBuilderType {
return sq.StatementBuilder.PlaceholderFormat(sq.Question)
}
func (ss *SqlStore) CheckIntegrity() <-chan model.IntegrityCheckResult {
results := make(chan model.IntegrityCheckResult)
go CheckRelationalIntegrity(ss, results)