Using OrmLite with android I have tried experimenting with a simple query:
GenericRawResults<String[]> results = queryRaw("SELECT * FROM transaction");
Unfortunately I recieve an exception:
near "transaction": syntax error: , while compiling: SELECT * FROM transaction
I found this confusing, and after stepping through and seeing what the Orm generates through compiled statements I realised the syntax should be:
GenericRawResults<String[]> results = queryRaw("SELECT * FROM `transaction`");
I am just slightly confused as to why this is required?
"Transaction" is an SQLite3 keyword.
Relevant quotes from that page, up at the very very top:
Documentation is your friend.*
* Except when it isn’t. But in this case, it is.