Hi,

This is a common problem when using a database URL of the form
"jdbc:h2:test".

I wonder if it would make sense to disallow such datababase URLs (so that
it would throw an exception), and instead, if somebody really wants to
store the database file in the current working directory, the database URL
would need to be "jdbc:h2:./test".

What do others think?

Regards,
Thomas

On Wednesday, November 6, 2013, Noel Grandin wrote:

> The most likely answer is that you are accidentally seeing a
> completely different DB, which is empty.
>
> Remember that if you enter a URL which points to a location which does
> not contain a DB file, H2 will automatically create an empty DB.
>
> --
> 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] <javascript:;>.
> To post to this group, send email to 
> [email protected]<javascript:;>
> .
> Visit this group at http://groups.google.com/group/h2-database.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to