Fix type argument in innerJoin and leftOuterJoin

This commit is contained in:
Simon Binder 2021-03-05 11:15:14 +01:00
parent dbc4bcffaa
commit 6714db7aef
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class Join<T extends Table, D extends DataClass> extends Component {
/// - https://moor.simonbinder.eu/docs/advanced-features/joins/#joins
/// - http://www.sqlitetutorial.net/sqlite-inner-join/
Join innerJoin<T extends Table, D extends DataClass>(
TableInfo<T, D> other, Expression<bool> on,
TableInfo<T, D> other, Expression<bool?> on,
{bool? useColumns}) {
return Join._(_JoinType.inner, other, on, includeInResult: useColumns);
}
@ -84,7 +84,7 @@ Join innerJoin<T extends Table, D extends DataClass>(
/// - https://moor.simonbinder.eu/docs/advanced-features/joins/#joins
/// - http://www.sqlitetutorial.net/sqlite-left-join/
Join leftOuterJoin<T extends Table, D extends DataClass>(
TableInfo<T, D> other, Expression<bool> on,
TableInfo<T, D> other, Expression<bool?> on,
{bool? useColumns}) {
return Join._(_JoinType.leftOuter, other, on, includeInResult: useColumns);
}