Hi,
Here is an error I get with the last version of HSQLDB (alpha T). It works
fine
with 1.7.1!
Here are the details:
I create two tables and populate one:
create table DUAL ( DUMMY VARCHAR )
INSERT INTO DUAL VALUES(NULL)
create table TABLES_LIST (
name varchar(100) not null,
last_updated timestamp not null,
constraint PK_TABLES_LIST unique( name, last_updated ) )
The TABLES_LIST is used to know the date of the last update of a table from
an Oracle schema (Oracle -> HSQLDB) using audit.
If the structure or the data of an Oracle table have been modified, then, I
recreate the corresponding table in the HSQLDB database
and I repopulate this new table, then I update the TABLES_LIST with the
current date and the table name with this SQL statement:
insert into TABLES_LIST ( name, last_updated ) select ?, now() from DUAL where not
exists (select 1 from TABLES_LIST where name = ?)
As I said earlier, it works fine with 1.7.1 version but with alpha-T, I get this
exception:
11:42:14,097 FATAL [Module] Unable to create the Historique database!
com.bnpparibas.ism.core.util.InitializationException: Unable to load the data!; -
nested throwable: (java.sql.SQLException: Column types do not match:
It is ambiguous to specify a parameter marker as
a SELECT list item in statement [insert into TABLES_LIST ( name, last_updated ) select
?, now() from DUAL where not exists (select 1 from TABLES_LIST
where name = ?)])
at ...
Caused by: java.sql.SQLException: Column types do not match: It is ambiguous to
specify a parameter marker as a SELECT list item in statement [insert
into TABLES_LIST ( name, last_updated ) select ?,
now() from DUAL where not exists (select 1 from TABLES_LIST where name = ?)]
at org.hsqldb.jdbcDriver.throwError(jdbcDriver.java:135)
at org.hsqldb.jdbcPreparedStatement.<init>(jdbcPreparedStatement.java:1790)
at org.hsqldb.jdbcConnection.prepareStatement(jdbcConnection.java:544)
... 4 more
Can you confirm me it is a bug? If not, what can I do to resolve this problem?
TIA,
Loic
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers