JDBCDataStore.decodeFID() logic hole
------------------------------------

                 Key: GEOT-3671
                 URL: https://jira.codehaus.org/browse/GEOT-3671
             Project: GeoTools
          Issue Type: Bug
          Components: jdbc, jdbc-oracle plugin
    Affects Versions: 2.7.1
            Reporter: jie yan


In PrimaryKeyFIDValidator.isValid() calls:
    featureSource.getDataStore().decodeFID( key, fid, true );


In JDBCDataStore.decodeFID():
    the input FID is String,
    the input strict flag is true,
    so the following condition will always be false when the primary key column 
in database is not String:
        "if (strict && !type.isInstance( values.get( i ) ) )"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to