Skip to content

Commit

Permalink
Merge pull request #373 from jelwan/fix/create-index-where-clause
Browse files Browse the repository at this point in the history
fix: append where to index create
  • Loading branch information
vmihailenco committed Dec 21, 2021
2 parents dbb7d90 + 1de6cea commit 509c555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions query_index_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func (q *CreateIndexQuery) AppendQuery(fmter schema.Formatter, b []byte) (_ []by
}

if len(q.where) > 0 {
b = append(b, " WHERE "...)
b, err = appendWhere(fmter, b, q.where)
if err != nil {
return nil, err
Expand Down

0 comments on commit 509c555

Please sign in to comment.