Hi all,
I've update b4a version from 3.0 to 3.20 and see a strange behaviour with sqlite multiple transaction.
Sample code:
DbPocket.Initialize(WorkDir, CreatoreApp & "Pocket.sqlite", False)
DbPocket.BeginTransaction
DbPocket.BeginTransaction
DbPocket.ExecNonQuery("Create Table TmpT(CodClie NvarChar(30), RagSoc NvarChar(98))
DbPocket.TransactionSuccessful
DbPocket.EndTransaction
DbPocket.Close
DbPocket.Initialize(WorkDir, CreatoreApp & "Pocket.sqlite", False)
Works fine in 3.00 version but crash with this error:
“android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode”
in 3.20 version.
I use the same sql library version 1.20
Seems that more BeginTransaction without EndTransaction cause the issue.
Ps. After debugging with 3.20 b4a version I can reproduce this error even with 3.00 b4a
Thanks in advance,
Best Regards
I've update b4a version from 3.0 to 3.20 and see a strange behaviour with sqlite multiple transaction.
Sample code:
DbPocket.Initialize(WorkDir, CreatoreApp & "Pocket.sqlite", False)
DbPocket.BeginTransaction
DbPocket.BeginTransaction
DbPocket.ExecNonQuery("Create Table TmpT(CodClie NvarChar(30), RagSoc NvarChar(98))
DbPocket.TransactionSuccessful
DbPocket.EndTransaction
DbPocket.Close
DbPocket.Initialize(WorkDir, CreatoreApp & "Pocket.sqlite", False)
Works fine in 3.00 version but crash with this error:
“android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode”
in 3.20 version.
I use the same sql library version 1.20
Seems that more BeginTransaction without EndTransaction cause the issue.
Ps. After debugging with 3.20 b4a version I can reproduce this error even with 3.00 b4a
Thanks in advance,
Best Regards