Hi,

I just thought I'd point out something that confused me, in the hope of helping 
others.


from the source, where the constants are defined:

#define SQLITE_BUSY         5   /* The database file is locked */

#define SQLITE_LOCKED       6   /* A table in the database is locked */


and from the function that translates these to english messages:

    /* SQLITE_BUSY        */ "database is locked",

    /* SQLITE_LOCKED      */ "database table is locked",


But the wiki page http://www.sqlite.org/cvstrac/wiki?p=DatabaseIsLocked has 
mixed the two up:

Error Code SQLITE_LOCKED (6): Database Is Locked


I was getting a "database is locked" message in my log file, and spent some 
time trying to understand how I could be getting SQLITE_LOCKED error, when in 
fact I was just getting a SQLITE_BUSY!


?

Regards, Paul
www.we-do-it.com<http://www.we-do-it.com>
APAC - India - EMEA - Americas
[http://www.we-do-it.com/images/footerlogo.jpg]<http://www.we-do-it.com>
[http://www.we-do-it.com/images/facebook-com.png]<http://www.facebook.com/wedoitnews>
 [http://www.we-do-it.com/images/linkedin-favicon.png] 
<http://www.linkedin.com/company/we-do-it>  
[http://www.we-do-it.com/images/twitter-com.png] 
<http://https://twitter.com/wedoITNews>  
[http://www.we-do-it.com/images/new-g-plus-icon-32.png] 
<https://plus.google.com/u/0/+We-do-it/posts>  
[http://www.we-do-it.com/images/youtube_favicon.20px.png] 
<https://www.youtube.com/channel/UCrp_9Gx-_e4wNTUpe1KogRw>
ISO 9001:2008
Certified for the provision of
IT based Consulting
Training and
Product Development Services    
[http://www.we-do-it.com/images/iso9001certified.jpg]
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to