You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for the repro, added that here: https://github.com/cashapp/sqldelight/pull/new/astrong/2020-08-20/1874-repro but don't have an idea for a fix yet. If someone runs in to this and needs a work around you just have to declare the view in the same file after the query (or just have the view return a unique projection)
Build Environment
SQLDelight version: 1.4.0
OS: macOS 10.15.5
Gradle version: 6.6
Kotlin version: 1.3.72
AGP Version: 4.0.1
Example:
song.sq
This compiles to the following:
SongQueries.kt
Everything works correctly so far. Adding another .sq file with a view that selects all columns from the table changes things:
first_song_in_album.sq
This causes the
selectSongsByAlbumId
query to be compiled with the wrong return type:SongQueries.kt
The
First_song_in_album
type does not exist and the build fails because of this:Additional information
Query<Song>
. Only when building with the Gradle plugin does this problem occur.selectSongsByAlbumId
query and thefirst_song_in_album
view select all columns (*) from the table.The text was updated successfully, but these errors were encountered: