fluent-kit icon indicating copy to clipboard operation
fluent-kit copied to clipboard

Swift 6 `IS NOT NULL` where clause regression

Open finestructure opened this issue 1 year ago • 1 comments

One of our unit tests is failing when running it with Swift 6. The underlying cause seems to be a regression in how the WHERE clause is being rendered.

In Swift 5.10 we get

WHERE "versions"."latest" IS NOT NULL

(notably without any bind parameter).

In Swift 6 this ends up as

WHERE "versions"."latest" <> $1

with a bind parameter nil and this does not actually select results like the 5.10 query doesn't.

finestructure avatar Jul 03 '24 11:07 finestructure

Looks like a duplicate of #611

0xTim avatar Jul 03 '24 12:07 0xTim

@finestructure can you confirm this is fixed in the latest Xcode beta?

0xTim avatar Jul 12 '24 16:07 0xTim

Yes, these tests are now passing, thank you!

https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/actions/runs/9910852316

finestructure avatar Jul 12 '24 16:07 finestructure