SQL read-only
hey
i make app sqllite.
but if try insert our update show me error not have permission write de db. ipad. on machine works perfect.
here code:
dbfile2 = file.applicationdirectory.resolvepath("documents/base.db");
if (dbfile2.exists)
{
conn = new sqlconnection();
conn.addeventlistener(sqlevent.open, openhandler);
conn.open(dbfile2);
}
else
{
trace("don't exist")
}
error:
sqlerror: 'error #3122: attempt write readonly database.', details:'attempt write readonly database', operation:'execute', detailid:'2411'
@ flash.data::sqlstatement/execute()
any 1 have issue?
tanks
bruno brustoloni e oliveira
hey,
file.applicationdirectory read directory.
you'll have copy file file.documentsdirectory use database.
see this page example.
-mayank
More discussions in AIR Development
adobe
Comments
Post a Comment