Try reading the documentation for each of those options you are using.

In particular, these ones.
http://h2database.com/html/grammar.html#set_log
http://h2database.com/html/grammar.html#set_undo_log

If you don't understand an option, you should probably not be using it.

On 2013-02-15 13:23, Bastian Schöpp wrote:
Hi

I am developing an Android app that uses the H2 database in embedded mode. Since you can not handle close or kill requests to the app on Android the database connection may be killed without notice. I noticed that changes to the database are not persisted if the app gets killed. This is a big issue for me on Android. Only if I close and reconnect the database changes are persisted.
I use the following url to connect:
jdbc:h2:/storage/emulated/0/MyApp/main;UNDO_LOG=0;LOG=0;LOCK_MODE=0;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=1;AUTO_RECONNECT=TRUE;AUTOCOMMIT=ON;COMPRESS_LOB=DEFLATE;WRITE_DELAY=0;ACCESS_MODE_DATA=rws;FILE_LOCK=FS;PAGE_SIZE=1024;CACHE_SIZE=8192;CIPHER=AES

Any idea what causes the problem?
--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to