Verified
Status Update
Comments
se...@google.com <se...@google.com>
yb...@google.com <yb...@google.com>
sh...@google.com <sh...@google.com>
sh...@google.com <sh...@google.com>
a9...@gmail.com <a9...@gmail.com> #2
The generated dao code has this line:
_observer = new Observer("book","split")
I think annotation processor should handle this type usages of FROM clause.
I found a workaround for this problem. I created an unused entity named "Split" and it works.
_observer = new Observer("book","split")
I think annotation processor should handle this type usages of FROM clause.
I found a workaround for this problem. I created an unused entity named "Split" and it works.
Description
Version used: 1.0.0-alpha8
Devices/Android versions reproduced on: Android Studio 3.0 Canary 9
An entity with indices creates different schemas on different operating systems (Windows, Linux, Mac)
When declaring an entity like
@Entity(tableName = "bookmark", indices = arrayOf(Index(value = "id", unique = true)))
the schema created shows the following create sql script on Linux and Mac
"createSql": "CREATE UNIQUE INDEX `index_bookmark_id` ON `${TABLE_NAME}` (`id`)"
and the following on Windows:
"createSql": "CREATE UNIQUE INDEX `index_bookmark_id`\nON `${TABLE_NAME}` (`id`)"
There is an additional "\n" inside on Windows (or missing on Linux) which results in consistent differences between those platforms.