TEXT is currently mapped to CLOB. Unfortunately I don't have a
workaround for you, I'm sorry. I will add a feature request to allow
to remap such data types, but it will take some time until this is
implemented.
Regards,
Thomas
I found that my code works fine with a small modification to
DataTypes.java- I moved the "TEXT" alias up so that it maps under the
"String" type, rather than CLOB:
add(Value.STRING, Types.VARCHAR, "String",
createString(true),
new String[]{"VARCHAR", "VARCHAR2", "TEXT",
"NVARCHAR", "NVARCHAR2", "VARCHAR_CASESENSITIVE",
"CHARACTER VARYING", "TID"},
4
);
Not being familiar with the codebase, I am not sure what other side
effects this may cause, but it does seem to solve my problem with
Postgres. Being able to re-map types at runtime would be very
helpful.
Thanks.
> Being able to re-map types at runtime would be very helpful.
Yes, anyway that's easy to implement and can solve other problems as
well. I have implemented it now, it will be available in the next
release. You will still need to define it however using:
CREATE DOMAIN TEXT AS VARCHAR;
Regards,
Thomas