android-schema-utils
android-schema-utils copied to clipboard
Generates non-valid SQLite queries
.add(new Schemas.AddColumn("order", "INTEGER"))
does not escape column name, if column name is keyword, it leads to invalid DSL statement.
When trying to create multi-column index like this:
AutoIndexer.getCreateStatement(new SQLiteIndex(TASKS_TABLE, "type, from, to, status"))
I get
CREATE INDEX auto_index_tasks_type, from, to, status ON tasks(type, from, to, status)
(index name is invalid and unescaped),