In AbstractJdbc1DatabaseMetaData.getIndexInfo(), the query needs to also be sorted by ORDINAL_POSITION as the final field in the ORDER BY clause.-pete