[yunqa.de] Re: How to correctly avoid 'database is locked' in multi user

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sun, 13 Jan 2013 11:17:35 +0100

On 13.01.2013 09:57, H M wrote:

> No I didn't get any error messages with the original code. The call
> returned SQLITE_OK but  (as expected) the record wasn't saved if the
> database was locked.
> 
> However, the new code you supplied for sqlite3_exec_with_callback()
> wouln't compile. I got an undeclared identifier on C_int  where you
> declare the variable SqlLength
> 
> I changed
> 
> SqlLength: C_int; 
> 
> to
> 
> SqlLength: integer; 
> 
>  and everything now seems to work correctly now. It that OK?

My apologies. Your change is absolutely correct!

> Also, does sqlite3_exec_with_callback16() need changing in any way?
> I don't explicitly use it in my code but it might be called via one of
> your wrappers without me being aware.

sqlite3_exec_with_callback16() must not be changed. It calls
sqlite3_exec_with_callback() internally so all it taken care of.

Ralf
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: