Issue Type: Bug Bug
Affects Versions: 9.3
Assignee: Unassigned
Components: jdbc
Created: 01/Jul/13 2:25 AM
Description:

Given a statement like

select name as id from ......

the feature type uses "name" for the attribute descriptor, but it should be "id".

The problem is in class JDBCFeatureSource, method

static List<ColumnMetadata> getColumnMetadata(Connection cx, VirtualTable vtable, SQLDialect dialect, JDBCDataStore store);

Line 771

column.name = metadata.getColumnName;

Correct:

column.name = metadata.getColumnLabel;

If no label is found, getColumnLabel falls back to getColumName

Project: GeoTools
Priority: Major Major
Reporter: Christian Mueller
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to