Hello Everyone,
I have this little snippet of code that inserts a row into a table in a SQLite database.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This results in a locked database and subsequent updates/inserts are not possible. The intellisense help indicates that the 'TransactionSuccessful' method commits AND ends the transaction. In an android app the equivalent snippet of code includes an additional method 'EndTransaction' that I suspect may be missing from the jSQL library...just a suspicion.
If I comment out the lines with 'BeginTransaction', 'TransactionSuccessful' and 'Rollback' then the database is not locked after the insert.
Can anyone provide a work around or some other helpful bit of insight?
			
			I have this little snippet of code that inserts a row into a table in a SQLite database.
			
				B4X:
			
		
		
		    Main.db.BeginTransaction
    Try
        Main.db.ExecNonQuery(cmd)
        Main.db.TransactionSuccessful
        Result = True
    Catch
        Main.db.Rollback
        Log("error inserting")
        Log(LastException)
    End TryThis results in a locked database and subsequent updates/inserts are not possible. The intellisense help indicates that the 'TransactionSuccessful' method commits AND ends the transaction. In an android app the equivalent snippet of code includes an additional method 'EndTransaction' that I suspect may be missing from the jSQL library...just a suspicion.
If I comment out the lines with 'BeginTransaction', 'TransactionSuccessful' and 'Rollback' then the database is not locked after the insert.
Can anyone provide a work around or some other helpful bit of insight?
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		