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.

2
  • Did you check stackoverflow.com/questions/1557085/… ? Commented Sep 20, 2012 at 14:26
  • @Chris I am not using JPA nor am I using the IN syntax. Commented Sep 20, 2012 at 14:29

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Good to know. Hope they change that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.