I am trying to figure out H2's support for temporary tables in order
to properly utilize them from Hibernate's H2Dialect.  But I am running
into some questions:

1) First, does creating a temporary table cause an implicit
transaction commit?  The H2 driver reports that DDL does cause an
implicit commit
(DatabaseMetaData#dataDefinitionCausesTransactionCommit).  My question
is whether that is true of temporary objects as well?  Does LOCAL/
GLOBAL matter here?

2) Based on WhatMadeSense, I tried to have Hibernate use "create
cached local temporary table if not exists" as the command  (cached
because I am unsure how many rows might be added and the docs implied
that memory should not be used if the table is "too large", whatever
that means).  However, because of
DatabaseMetaData#dataDefinitionCausesTransactionCommit returning true
right now Hibernate is issuing this in a separate connection.  The odd
part is that the "main connection" is able to see it.  Am I missing
something about "local" as pertains to temp tables in H2?

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

Reply via email to