Hi,

You currently can't as the domain name is not stored.

What you could do as a workaround is add a comment on the column, as you
can retrieve that, in the column metadata (information_schema.columns). Or,
as an alternative, add a "fake" column constraint on the domain. The column
constraint is propagated to the column, and can be read as well.

Regards,
Thomas


On Thu, Apr 25, 2013 at 9:20 AM, Nicolas Fortin (OrbisGIS) <
[email protected]> 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