Fixed
Status Update
Comments
da...@google.com <da...@google.com>
el...@google.com <el...@google.com>
ap...@google.com <ap...@google.com> #2
Thanks for reporting this - Looks like Room is trying to give you a warning, possibly POJO & query result column mismatch, but it fails format the message. I guess safeFormat() is not very safe after all. >.>
Could you please provide your full method signature for the failing query method case? If the return type is a data class it would be nice if you could also provide it.
Could you please provide your full method signature for the failing query method case? If the return type is a data class it would be nice if you could also provide it.
Description
Component
Description
Adding column name with SQL keyword makes the compiler fail to escape the keyword and thereafter fail to migrate the database.
I seem to be unable to escape this even with the
RenameColumn
andDeleteColumn
as they seek the exact names and therefore will skip escaping with `.Proposed Solution
Have the compiler escape SQL keywords in column and table names.
Code sample
Before:
After: