-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mixin to handle annotated errors
I looked at the CockRoachDB implementation (compatible with Postgres) Essentially, the simplest check is to ensure the ORDER BY columns exist in the DISTINCT ON columns.
- Loading branch information
Showing
3 changed files
with
50 additions
and
7 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
4 changes: 3 additions & 1 deletion
4
.../postgresql/src/testFixtures/resources/fixtures_postgresql/select-distinct-on/failure.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Test.s line 11:20 - DISTINCT ON expression(s) must match the leftmost ORDER BY expression(s) | ||
Test.s line 33:9 - SELECT DISTINCT ON expressions must match initial ORDER BY expressions | ||
Test.s line 38:9 - SELECT DISTINCT ON expressions must match initial ORDER BY expressions | ||
Test.s line 43:15 - SELECT DISTINCT ON expressions must match initial ORDER BY expressions |