http://www.dbunit.org/properties/primaryKeyFilter is only respected if it is set before the metadata is loaded for the first time in DatabaseTableMetadata.
I'm not sure if this is by design.
If it is by design, I think that it should be explicitly stated on the documentation.
If not, I think that in DatabaseTableMetaData.getPrimaryKeys(), in addition to checking if _primaryKeys is null, one should also check if the primaryKeysFilter property has been changed since its last invocation.
here's the patch
http://dlthis.com/dbunit/patch.txt
Your fix has been accepted and committed to the project repository.
Thank you!
Hi there,
I committed your patch to svn rev. 1022/trunk. Thanks a lot!
rgds,
matthias