Skip to content

Commit

Permalink
Merge pull request #695 from kosmikus/fix-where-without-from
Browse files Browse the repository at this point in the history
Fix building queries with WHERE in the absence of FROM.
  • Loading branch information
LaurentRDC authored Oct 9, 2024
2 parents 9717dd5 + e48f586 commit b5205ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beam-core/Database/Beam/Query/SQL92.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ buildSql92Query' arbitrarilyNestedCombinations baseTblPfx (Q q) =
-> Free (QF be db s) x
-> SelectBuilder be db x
buildQuery _ (Pure x) = SelectBuilderQ x emptyQb
buildQuery tblPfx (Free (QGuard _ next)) = buildQuery tblPfx next
buildQuery tblPfx f@(Free (QGuard _ _)) = buildJoinedQuery tblPfx f emptyQb
buildQuery tblPfx f@(Free QAll {}) = buildJoinedQuery tblPfx f emptyQb
buildQuery tblPfx f@(Free QArbitraryJoin {}) = buildJoinedQuery tblPfx f emptyQb
buildQuery tblPfx f@(Free QTwoWayJoin {}) = buildJoinedQuery tblPfx f emptyQb
Expand Down

0 comments on commit b5205ec

Please sign in to comment.