Skip navigation
_ADP_
Currently Being Moderated

Air - Sqlite with Adobe Air insert data in memory, but do not record on the database file

Jan 2, 2014 4:28 PM

Tags: #air #adobe #sqlite #sqlstatement

I have the code:

 

var statement:SQLStatement = new SQLStatement();

                       

statement.addEventListener(SQLEvent.RESULT, insertResult);

statement.addEventListener(SQLErrorEvent.ERROR, insertError);

                       

statement.sqlConnection = sqlConnection;

statement.text = "insert into table values('"+TINome.text+"','"+TISerial.text+"') ";

 

statement.execute();

 

This run without error and the data is inserted (i dont know where), but when i see into database with firefox sqlite manager, the database is empty! But the Air continue run for a time like the data was recorded on the database file. I dont know what is happen with it.

 

Help please!

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points