OracleDataStore doesn't work for floats with Oracle before 10.x
---------------------------------------------------------------

         Key: GEOT-729
         URL: http://jira.codehaus.org/browse/GEOT-729
     Project: GeoTools
        Type: Bug
  Components: oraclespatial  
    Versions: 2.2.M0    
 Reporter: Paolo Rizzi
 Assigned to: Sean Geoghegan 
     Fix For: 2.2.M1


OracleDataStore uses the normal JDBCTextFeatureWriter 
that puts every non geometry value between quotes.
Oracle before version 10 accepts '0' for a NUMBER field, but not '0.0'.
So any float attribute (or double or whatever) won't be accepted.

We should use a specific OracleFeatureWriter instead to not put quotes
around numbers or we can modifiy the normal JDBCTextFeatureWriter
to distinguish number attributes like this:
        else if( Number.class.isAssignableFrom(attributeTypes[i].getType()) ) {
                attrValue = attributes[i] != null ? 
                String.valueOf(attributes[i]) :
                null;
        }
                     else {
                         attrValue = addQuotes(attributes[i]);
                     }


-- 
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:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to