Hi all,
While working on fixing the problems of the Hibernate test cases, I
detected a possible bug.
In InsertRequest.parse, we test the parsing granularities and if we
have to consider columns, we try to find the column in the table. The
problem is that the columns list is not populated. Database schema
contains:
// Get information about this table columns (not used)
if (dynamicDatabaseSchema.useColumns())
and useColumns always returns false ("for future use").
It's really simple to reproduce this bug as if you define a
<ResultCache granularity="column"/> element and if you try to execute
the following query:
jdbc:sequoia://localhost/test_db (user) > insert into test (id,
message) values(10008, 'test')
An error occured while executing SQL query
(org.continuent.sequoia.common.exceptions.driver.DriverSQLException:
Message of cause: Unknown column name 'id' in this INSERT statement:
'insert into test (id, message) values(10008, 'test')')
even if the id column exists.
Is it me or is there an inconsistent behaviour? Or perhaps column and
column unique parsing granularities are not supported?
--
Guillaume
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia