0

I currently get an SQLException when invoking the createArrayOf(String,Object) of the Connection class. My database is HSQL and the code used to generate the type is as follows:

create type FOO as BIGINT;

The java code I am invoking is as follows:

Connection conn = createConnection();  
conn.createArrayOf("MySchema.FOO",data);

This also fails:

Connection conn = createConnection();  
conn.createArrayOf("FOO",data);

The resulting output is:

Invalid argument in JDBC call: FOO

My question is how can I bind to a type that exists in a HSQL database, this is not an in memory instance.

Woot4Moo
  • 23,987
  • 16
  • 94
  • 151

1 Answers1

1

User defined types are not currently supported as arguments to this method. You can use "BIGINT". Future versions of HSQLDB may support user defined type arguments.

fredt
  • 24,044
  • 3
  • 40
  • 61