[Solved] [HSQLDB] Jdbc driver: Table not found in statement

dBase, Calc, CSV, MS ACCESS, MySQL, PostgrSQL, OTHER
Post Reply
newuser
Posts: 39
Joined: Sun Dec 02, 2007 11:06 am

[Solved] [HSQLDB] Jdbc driver: Table not found in statement

Post by newuser »

I'm running OOo 2.3.1 on Windows 2000 and I'm trying to create a JDBC connection to an empty database file created with HSQLDB version 1.8.0.9.

So far I've been able to load the driver ("org.hsqldb.jdbcDriver"), connect to the database ("jdbc:hsqldb:file:c:\mydb\test.db") and create a table, however I cannot open it with Base since double clicking on it returns the following error message:

"The data content could no be loaded, table not found in statement [SELECT * FROM "TestTable"]"

It seems to be a problem with database schema, even if the option Advanced Setting -> Use schema name in Select Statement is checked it is ignored.

Am I missing something?

Thanks in advance.

Edit: if anyone wants to test it, please note that adding the jar file to the class path of your JRE environment will prevent the embedded HSQLDB engine from working until you remove it.
Last edited by newuser on Sun Mar 23, 2008 7:27 am, edited 2 times in total.
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: [HSQLDB] Jdbc driver: Table not found in statement...

Post by DrewJensen »

Hi,

Take a look at this page on the wiki:

http://wiki.services.openoffice.org/wik ... and_Tricks

Checkout the option default_schema for the JDBC driver - that will fix it for you.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
newuser
Posts: 39
Joined: Sun Dec 02, 2007 11:06 am

Re: [HSQLDB] Jdbc driver: Table not found in statement...

Post by newuser »

Thanks a lot Drew, it works perfectly.
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: [SOLVED][HSQLDB]Jdbc driver: Table not found in statement...

Post by DrewJensen »

Great -

Also
newuser wrote:Edit: if anyone wants to test it, please note that adding the jar file to the class path of your JRE environment will prevent the embedded HSQLDB engine from working until you remove it.
This was a regression in the 2.3.1 release and has been fixed in the 2.4 release.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Post Reply