I have an insert or replace command similar to this:
INSERT or REPLACE INTO author(id,bookId,name) values((SELECT id FROM author WHERE bookId='4'),'4','Book Title')
Basically, it replaces a row if an id exists that aligns with a a bookId. If there is no id it inserts.
I'm using an application called "SQLite Database Browser 2.0" to test my SQLite commands on the same database tables I have in my app (I'm exporting the database from the emulator). The above command works like a charm in the Database Browser but the app doesn't insert or replace (right now it should insert since the table is empty).
I know my SQLite command is correct and I don't get any errors in my Logcat.
Am I missing a piece Android needs to do this command?