You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Per-Olof Norén <pe...@alma.nu> on 2003/03/03 20:46:40 UTC
[PATCH] java.sql.Struct support (was it deliberatly missing?)
Hi Thomas, all
Looking at the types page (http://db.apache.org/ojb/jdbc-types.html) one
finds java.sql.Struct mentioned. This gives me the impression that it´s
intended that one should be able to use STRUCT columns. However, looking
in FieldDescriptor.java and SqlHelper.java I see no support for
java.sql.Struct.
Trying to use struct columns renders a OJBRuntimeException to be trown:
"The type STRUCT cannot be used for attribute geometry can not be
handled by OJB. Please specify only types as defined by java.sql.Types."
My question is shoud it or should it not be possible tu use STRUCT?
Attached is a patch that fixes this in SqlHelper and FieldDescriptor.
As usual, let me know if I can assist in any way .
Regards,
Per-Olof Norén
Curalia AB