> In H2, I only seem to be able to create ARRAY types without any
> information about the contained elements
Yes, that's true.
> 1. Is that true or am I missing something?
No.
> 2. Will that stay that way or is there a SQL syntax enhancement on the
> roadmap for more type-safety?
I just added this to the roadmap. Patches are always welcome of course!
What exactly is your use case? Is it just a compatibility problem for
you? Or do you mainly need some way to ensure the data type is
correct? In that case you could use a domain with a check constraint.
But as H2 can convert all data types to VARCHAR, it wouldn't help
much.
Regards,
Thomas
> My use case is to provide correct support for array types in many SQL
> dialects to include that in my database abstraction library jOOQ:
> http://jooq.sourceforge.net
I'm afraid this will be quite hard to achieve...
> used so little by the Java folks
> is because of a lack of standardisation even through JDBC.
I think your are right.
Regards,
Thomas