LucaMs Expert Licensed User Longtime User Nov 9, 2014 #1 If I update a record in a table in a local SQLite db (smartphone) and immediately after I load all of the records, I get the old data. Can you implement this in any way?
If I update a record in a table in a local SQLite db (smartphone) and immediately after I load all of the records, I get the old data. Can you implement this in any way?
Erel B4X founder Staff member Licensed User Longtime User Nov 9, 2014 #2 If you are using the same SQL object then it should always return the latest data available. Maybe you are not closing a transaction? Upvote 0
If you are using the same SQL object then it should always return the latest data available. Maybe you are not closing a transaction?
LucaMs Expert Licensed User Longtime User Nov 9, 2014 #3 Yes, I have tried using (and closing) transactions but I get the same result. Upvote 0
LucaMs Expert Licensed User Longtime User Nov 9, 2014 #4 http://developer.android.com/refere...id.database.sqlite.SQLiteTransactionListener) Upvote 0
R rboeck Well-Known Member Licensed User Longtime User Nov 9, 2014 #5 Hi, look at this thread; http://www.b4x.com/android/forum/threads/sqlextended-an-extension-to-the-sql-library.43420/ My problem was opposite - as long i was in the app, the new value came back; but after a new start there was the old value. I switched to writeaheadlogging and it worked. Maybe that there was any defect in the database log file etc. Upvote 0
Hi, look at this thread; http://www.b4x.com/android/forum/threads/sqlextended-an-extension-to-the-sql-library.43420/ My problem was opposite - as long i was in the app, the new value came back; but after a new start there was the old value. I switched to writeaheadlogging and it worked. Maybe that there was any defect in the database log file etc.
LucaMs Expert Licensed User Longtime User Nov 9, 2014 #6 rboeck said: Hi, look at this thread; http://www.b4x.com/android/forum/threads/sqlextended-an-extension-to-the-sql-library.43420/ My problem was opposite - as long i was in the app, the new value came back; but after a new start there was the old value. I switched to writeaheadlogging and it worked. Maybe that there was any defect in the database log file etc. Click to expand... Thank you very much, I will read that post. But I just found out that the problem is elsewhere, in my case, although I still have not solved it! In a few minutes, I hope. Upvote 0
rboeck said: Hi, look at this thread; http://www.b4x.com/android/forum/threads/sqlextended-an-extension-to-the-sql-library.43420/ My problem was opposite - as long i was in the app, the new value came back; but after a new start there was the old value. I switched to writeaheadlogging and it worked. Maybe that there was any defect in the database log file etc. Click to expand... Thank you very much, I will read that post. But I just found out that the problem is elsewhere, in my case, although I still have not solved it! In a few minutes, I hope.
LucaMs Expert Licensed User Longtime User Nov 9, 2014 #7 Yes, the problem was elsewhere, I'm sorry. [P.S. related to this] Last edited: Nov 9, 2014 Upvote 0