Re: Using H2 safely on Android

2013-05-24 Thread Noel Grandin
You could try running a CHECKPOINT SYNC command from onPause(). At the very least, that would dramatically reduce the amount of work that H2 has to do during recovery. -- You received this message because you are subscribed to the Google Groups H2 Database group. To unsubscribe from this

Re: Triggers using a different Connection than the original operation

2013-05-24 Thread Noel Grandin
It's a new internal Connection, but it's running on the same internal Session, so it's running inside the context of the original transaction. We do that to make sure that some bits of internal state don't accidentally pollute the original Connection object. You should not be getting a

Re: Predicate functions

2013-05-24 Thread Nicolas Fortin (OrbisGIS)
At first I will save h2 spatial index in the following way CALL CreateSpatialIndex(...); I would like to save my h2spatial index on the same area where h2 save its index (seem to be SchemaObject instance). How it's done ? How I could do it from outside of h2 ? Thanks for support -- You

Compatibility with MySQL's UNSIGNED integer types

2013-05-24 Thread Lukas Eder
Hello, I understand that H2 syntactically supports the UNSIGNED keyword in DDL to stay compatible with MySQL: CREATE TABLE t_unsigned ( u_byte tinyint unsigned, u_short smallint unsigned, u_int int unsigned, u_long bigint unsigned ); Obviously, this is just a

Re: Compatibility with MySQL's UNSIGNED integer types

2013-05-24 Thread Noel Grandin
I can't see that adding full support is likely, since UNSIGNED datatypes are hardly a SQL standard. After all, the primary purpose of supporting them is to make running unit tests for people who are MySQL easier, so it's not like it's a production situation. But I can see that making them

Re: Compatibility with MySQL's UNSIGNED integer types

2013-05-24 Thread Lukas Eder
Hello, 2013/5/24 Noel Grandin noelgran...@gmail.com I can't see that adding full support is likely, since UNSIGNED datatypes are hardly a SQL standard. You're right. The SQL:2008 Standard actually refers to numbers as such: 4.4.1 Introduction to numbers [...] For every numeric

Re: Triggers using a different Connection than the original operation

2013-05-24 Thread Gili
Hi Noel, Here is a self-contained testcase: https://bitbucket.org/cowwoc/h2triggerdeadlock/downloads. You should be getting the following output: pre-delete department. Connection: conn1: url=jdbc:h2:mem:test1 user=SA pre-remove PUBLIC.DEPARTMENTS.permission. Connection: conn4:

Weird H2 Database error

2013-05-24 Thread Sammy Guergachi
So we have a database hosted on a networked drive. One day I tried to connect to H2 and got this error via the browser tool: General error: java.lang.NoClassDefFoundError: org/h2/engine/Constants; SQL statement: SELECT UPPER(VALUE) FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME='MODE'

Re: Weird H2 Database error

2013-05-24 Thread Thomas Mueller
Hi, The error message Caused by: java.lang.NoClassDefFoundError: org/h2/engine/Constants doesn't say much about the state of the database file. All it says is that you have a classloading problem. For example you have multiple version of the H2 jar file in your classpath (at least H2 version

H2 Database Corruption Error

2013-05-24 Thread Sammy Guergachi
We have an h2 database hosted on a networked drive, we access it via Auto Mix mode. Yesterday we encountered an error that prevented us from accessing any of our tables: General error: java.lang.NoClassDefFoundError: org/h2/engine/Constants; SQL statement: SELECT UPPER(VALUE) FROM

Re: Weird H2 Database error

2013-05-24 Thread Ryan How
I'm seeing 171 on the 2nd line and 169 on the 4th line? On 24/05/2013 11:25 PM, Thomas Mueller wrote: Hi, The error message Caused by: java.lang.NoClassDefFoundError: org/h2/engine/Constants doesn't say much about the state of the database file. All it says is that you have a classloading

Re: Weird H2 Database error

2013-05-24 Thread Thomas Mueller
Hi, Yes, your are right! It's weird that two distinct error codes are in the stack trace (I have never seen that before). But anyway, it seems like both version 1.3.171 and 1.3.169 are in the classpath. Regards, Thomas On Fri, May 24, 2013 at 5:34 PM, Ryan How r...@exemail.com.au wrote:

Re: H2 Database Corruption Error

2013-05-24 Thread Thomas Mueller
Hi, [This is a duplicate post] It seems like both version 1.3.171 and 1.3.169 are in the classpath. Regard, Thomas On Fri, May 24, 2013 at 5:26 PM, Sammy Guergachi sguerga...@gmail.comwrote: We have an h2 database hosted on a networked drive, we access it via Auto Mix mode. Yesterday

Re: auto vivification in MVStore

2013-05-24 Thread Thomas Mueller
Hi, When I get the map with store.openMap(name map) I see that all the objects are built, auto vivification, like in Perl. Opening the map will not read all entries of the map from disk. It might read a few entries (the root page of the b-tree), but that's about it. Even if you call map.get()