Skip to content

Dart API join with NNBD #1076

Answered by simolus3
davidmartos96 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I just missed that case in leftOuterJoin and innerJoin - an Expression<bool?> is the right type for now.

This is fixed on develop, you can use this as a workaround until then:

leftOuterJoin(
     myTable,
     (myTable.nonNullCol.equalsExp(otherTable.nonNullCol) &
            myTable.otherNonNullCol.equals(0)).dartCast(),
     useColumns: false,
),

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@davidmartos96
Comment options

Answer selected by davidmartos96
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants