[ http://jira.codehaus.org/browse/GEOT-486?page=all ]
     
Paolo Rizzi reopened GEOT-486:
------------------------------


It doesn't seem to has been fixed.
Inside OracleDataStore.buildAttributeType()
the nullable is set only for geometric columns.
Inside PostgisDataStore.buildAttributeType()
is not set at all.
Nor are set other info (field length, for example).
Why dont' we fix the JDBC1DataStore.buildAttributeType() instead???

> isNillable and others, not set
> ------------------------------
>
>          Key: GEOT-486
>          URL: http://jira.codehaus.org/browse/GEOT-486
>      Project: GeoTools
>         Type: Bug
>   Components: postgis
>     Versions: 2.1.M3
>     Reporter: Paolo Rizzi
>     Assignee: Chris Holmes
>      Fix For: 2.2.M1, 2.1.1

>
>
> A call to:
>    PostgisDataStore.getSchema()
> ends up calling:
>    AttributeType JDBCDataStore.buildAttributeType(ResultSet rs)
> that doesn't take into account all the information available inside the 
> provided ResultSet for a PostGIS table.
> For example the NILLABLE or IS_NILLABLE column is not used and so all the 
> AttributeType will have
> isNillable()==false value. Other information are ignored too, like field 
> length.
> Also the DefaultAttributeType implementation strangely sets isNillable=true, 
> and minOccurs=1...:)
> I don't know how the situation is with other DBs (Oracle, etc.), but is 
> possible that the same bug applies for them too.
> Bye
> Paolo Rizzi

-- 
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