--- FM2SQL/Attic/DBBean.java 2004/01/28 12:22:35 1.6 +++ FM2SQL/Attic/DBBean.java 2004/01/30 13:19:23 1.7 @@ -1356,12 +1356,14 @@ public class DBBean resultSet.next(); return resultSet.getInt(1); } - public TreeSet getIDVector(String id,String table) throws Exception + public TreeSet getIDVector(String id,String table,String query) throws Exception { TreeSet t= new TreeSet(); getConnection(); ResultSet result = this.result; - makeQuery("select "+id+" from "+getQC()+table+getQC(),0 ); + String subQuery = query.substring(query.lastIndexOf(table)+table.length()+1); + System.out.println("subQuery "+subQuery); + makeQuery("select "+id+" from "+getQC()+table+getQC()+subQuery,0 ); while(true) { Vector vec = getNextRow();