Skip to content
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

Data classes for a table's queries aren't generated if one of its VIEWs is moved to another table's .sq file #2313

Closed
saket opened this issue Apr 22, 2021 · 0 comments · Fixed by #3059

Comments

@saket
Copy link
Contributor

saket commented Apr 22, 2021

Build Environment
SQLDelight version: 1.4.4
OS: macOS
Gradle version: 4.0.2
Kotlin version: 1.4.31

Describe the bug
SQLDelight fails to generate data classes for any query for a table if I move one of its VIEW to another table's .sq file. I was able to reproduce this in Press by moving this VIEW to Folder.sq. A funny thing about this bug is that SQLDelight then tries to use the name of the moved VIEW as the return type for all generated query functions.

@saket saket added the bug label Apr 22, 2021
@saket saket changed the title Data classes for a table aren't generated if one of its VIEWs is moved to another table's .sq file Data classes for a table's queries aren't generated if one of its VIEWs is moved to another table's .sq file Apr 22, 2021
@AlecKazakova AlecKazakova added this to the 2.0 milestone Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants