-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
index/3 raises if given multiple
where:
clauses (#2700)
Because multiple `where:` keywords are supported by Ecto.Query, users may provide multiple `where:` keywords when declaring a partial index. However, this is not supported. Previously, this would fail in a surprising way: the final `where:` would be used and the other discarded. Now we raise an error, explaining that these clauses should be combined into a single string. Fixes #2690
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters