https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
k

KamilH

12/01/2023, 8:08 PM
Recently, I ran into an issue with aliases that don’t work in WHERE predicates. It looks like it has been fixed in 2.0.0, so I decided to upgrade to that version today. It went pretty smoothly, but when I tried to compile, I ran into another issue with a false positive signal that “Multiple columns found with name” (seems like it has been fixed here). So I decided to try the SNAPSHOT version, but the second issue is still there. And I just tried 2.0.1 with the same result. I’m unsure what the relation is between the
sql-psi
and the
sqldelight
, so I need to ask here: in which version of
sqldelight
can I expect that fix to be applied?
h

hfhbd

12/02/2023, 9:02 AM
Sqldelight 2.0.1 uses the latest version of sql-psi 0.4.8, so it should be fixed. Otherwise please create an issue with the failing sql.
k

KamilH

12/02/2023, 7:18 PM
I was about to create a reproducer, but I copy-pasted the example from this issue, and this bug still occurs here. Does it mean I’m missing something? Can it be an issue that I’m still on the 2.0.0 version of SQLDelight Idea Plugin (I don’t think a newer version has been released yet)
In my case, copy-pasting an example from this issue causes compilation error as well 🤔
4 Views