Skip to content

Commit

Permalink
Add test and changelog entry for join fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Aug 23, 2023
1 parent b5a564f commit d06b0b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.11.1

- Allow using `.read()` for a column added to a join from the table, fixing a
regression in drift 2.11.0.

## 2.11.0

- Add support for subqueries in the Dart query builder.
Expand Down
4 changes: 4 additions & 0 deletions drift/test/database/statements/join_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ void main() {
),
);

// Also make sure we can read individual columns
expect(row.read(todos.id), 5);
expect(row.read(categories.description), 'description');

verify(executor.runSelect(argThat(contains('DISTINCT')), any));
});

Expand Down

0 comments on commit d06b0b0

Please sign in to comment.