Interesting.
The PostgreSQL JDBC driver seems to return the domain name from ResultSetMetaData#getColumnTypeName()
See here:
https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java#L223

I wonder if we should be doing the same thing?

Hmmm, some quick hacking around inside our code reveals that it is not an easy fix. We appear not to have the original domain type anymore by the time the result set is returning.

On 2013-04-25 09:20, Nicolas Fortin (OrbisGIS) wrote:
Hi,

When I use CREATE DOMAIN and use this domain when creating the table, using ResultSetMetaData.getColumnTypeName I don't get the domain name but the OTHER (if I use create domain geometry as JAVA_OBJECT). How can I retrieve the domain name of my column ?

Thx
--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to