Mapping of the 'VARBINARY' Attribute Type. ------------------------------------------
Key: GEOT-3176 URL: http://jira.codehaus.org/browse/GEOT-3176 Project: GeoTools Issue Type: Improvement Components: data jdbc-ng Affects Versions: 2.6.4 Environment: windows vista, jdk1.5.0_22. Reporter: Tobia Di Pisa Fix For: 2.6.5 Attachments: SQLDialect_patch.diff Hi, I'm working on a Oracle table that has an attribute whose 'type_name' is 'RAW' and whose 'data_type' is '-3' that corresponds to VARBINARY in the java.sql.Types class. The write operation on this table is not permitted since the table is considered by GT as read-only. In debug I seem to have understood that the reason for this is that GT, unable to map the RAW attribute, set the table as read-only. This is the log message: AVVERTENZA: Could not find mapping for 'ATTRIBUTE_NAME', ignoring the column and setting the feature type read only. To resolve this problem I have introduced the mapping for this type in the SQLDialect.registerSqlTypeToClassMappings() method: mappings.put(new Integer(Types.VARBINARY), byte[].class); and the problem seems to be resolved. Regards -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel