Issue Type: Bug Bug
Affects Versions: 9.2
Assignee: Unassigned
Components: jdbc
Created: 24/Jun/13 11:36 AM
Description:

When using a Query with Join, the JDBCJoiningFeatureReader doesn't take the "Expose primary keys" parameter into account, and messes up with the column indices.
This may be related to bug #4229, but I didn't check yet.

It can be easily fixed by changing line 68 from :
int offset = featureType.getAttributeCount() + getPrimaryKey().getColumns().size();

To :
int offset = featureType.getAttributeCount();
if (!featureSource.isExposePrimaryKeyColumns())

{ offset += getPrimaryKey().getColumns().size(); }

I can provide a database dump and an associated test case to reproduce the problem if needed.

Please note that I tried to send this three times to the mailing list, but my messages did never get to the list (without any information).
Feel free to contact me since I have some other stuff to contribute...

Environment: Windows 7, Java 7
Project: GeoTools
Priority: Major Major
Reporter: Stephane Wasserhardt
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