Open RobinJ1995 opened 8 years ago
Regardless of whether some people would find this good practice or not, I would still consider this a bug.
Neither are field names, for that matter.
11-03 17:23:54.155 15943-15943/be.robinj.restobill E/AndroidRuntime: Caused by: android.database.sqlite.SQLiteException: near "TABLE": syntax error (code 1): , while compiling: CREATE TABLE BILL_ENTITY ( ID INTEGER PRIMARY KEY AUTOINCREMENT , TABLE INTEGER, CLOSED INTEGER )
@RobinJ1995 could you please to a PR to fix this? and add some tests for these cases?
As you can tell from the generated query (
CREATE TABLE TABLE ( ID INTEGER PRIMARY KEY AUTOINCREMENT , NAME TEXT )
) table names aren't quoted. This means that some table names (liketable
) will cause problems.