I'm using a Java wrapper for SQLite called SQLiteJDBC - this may have some bearing on any answers...
I have a table which I've displayed in a GUI, within that UI I have a button for the fields for an individual row of that table. When I save my changes I do this...
Statement stmt = connection.createStatement();
stmt.execute("update 'tableName' set 'fieldName'=1 where userid=1");
int updateCount = stmt.getUpdateCount();
My connection is valid, I get no exceptions thrown and getUpdateCount() returns '1' indicating that one row has been updated. However my table is not updated. I've spent the last few hours trying to work out what's going on but I'm not having any luck. Help!!
UPDATE
The problem seems to be that it's not committing the changes I make. While the application is running my changes are visible but as soon as I close the application and reopen it or check the database directly my changes are lost and we're back to square one. What's going on??!
Auto-commit is set to true and if I set it to false and try to commit I get an exception thrown.