If I connect with the file://... protocol I can create a table with the command:
CREATE TABLE test_table (col_0 VARCHAR)
If I connect with the hsql://... protocol when I create a table with the command:
CREATE TABLE test_table (col_0 VARCHAR)
I have the error message:
length must be specified in type definition: VARCHAR
Please check you are running 2.7.3 both as client and server.
I'm not really sure. I check and say.
You are right Fred, I had the server in 2.7.2 and the client 2.7.3.
If I test under 2.7.3 then the message disappears...
Bravo for identifying this problem so quickly and sorry for the inconvenience...
I am trying to integrate HsqlDB into Trino with the creation of a new HsqlDB connector.
Perhaps it is possible to know the version of the JDBC client (it seems that the server version can be obtained by DatabaseMetaData.getDriverVersion()) in order to be able to write a test verifying that the server and the JDBC client are of the same version?
Last edit: prrvchr 2024-07-11
Two different methods of DatabaseMetaData return the driver and the database versions:
Thank you Fred.