-
Notifications
You must be signed in to change notification settings - Fork 540
COALESCE regression #4870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here's one more example where I think the same underlying failure is happening:
I used to get a
|
My intuition is that the following PR introduced this regression: #4517 |
I have to look at the first case closer to see what's going on. The second case is likely caused because |
OK I found the first case in one of my projects as well. I believe I have a fix for it, gonna test it out and make a PR (probably tomorrow though) |
Have the fix for both, thanks for reporting! |
Just checked with the latest snapshot and indeed all of the cases have been fixed in my project. Nicely done @eygraber |
SQLDelight Version
2.0.1
Operating System
Mac
Gradle Version
8.5
Kotlin Version
1.9.21
Dialect
sqlite
AGP Version
8.1.4
Describe the Bug
Table:
and my query:
With 2.0.0 it simply returned the value as
Long?
, now it is wrapped in a class:Is there any reason for this change? In addition, the type should really be
Long
since the0
will always match and make the expression non-nullable.Stacktrace
No response
Gradle Build Script
No response
The text was updated successfully, but these errors were encountered: