SQLError: 'Error #3122', details:'', operation:'execute'
This Extjs AIR application makes use of the local database (SQLite) and I was unable to update/create/delete a record; I was repeatedly getting error 3122 during the save operation. After looking up the error description I finally figured out it was because the database file was read-only. And the installed file was in the Vista application directory. (Vista make this - it is not me, right? I think I already complain too much for IE - Vista is really good ??? / compare with IE - your know I did not have enough sleep past 2 days)
AIR applications have privileges to write to any location on the user's hard drive; however, developers are encouraged to use the app-storage:/ path for local storage related to their application. Files written to app-storage:/ from an application are located in a standard location depending on the user's operating system:
On Mac OS: the storage directory of an application is
/ where/Local Store/ is the user's “preferences folder,” typically: /Users/ /Library/Preferences On Windows: the storage directory of an application is
\ where\Local Store\ is the user's CSIDL_APPDATA “Special Folder,” typically: C:\Documents and Settings\ \Application Data On Linux:
/ where/Local Store/ is /home/ /.appdata
Do not installed AIR project under Vista/program file folder if you need touch SQLite DB file.
Hopefully anyone does not hit this stupid error like me.