android-schema-utils icon indicating copy to clipboard operation
android-schema-utils copied to clipboard

Generates non-valid SQLite queries

Open deinlandel opened this issue 9 years ago • 1 comments

   .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),

deinlandel avatar Mar 02 '16 13:03 deinlandel