--- FM2SQL/Attic/DBBean.java 2004/09/20 09:00:58 1.32 +++ FM2SQL/Attic/DBBean.java 2004/09/20 11:57:41 1.33 @@ -739,7 +739,7 @@ public class DBBean stm.execute(query); long time2 = System.currentTimeMillis(); - System.out.println("time to execute " + (time2 - time)); + // System.out.println("time to execute " + (time2 - time)); // stm.setMaxRows(numberOfHits); result = stm.getResultSet(); @@ -750,6 +750,7 @@ public class DBBean // TODO remove if (FM2SQL.fmInstance != null) FM2SQL.showErrorDialog("Error caught!! \n Query was " + query + " \n", "Debug Info"); + e.printStackTrace(); } return result; @@ -1529,7 +1530,7 @@ public class DBBean ResultSet result = this.result; String subQuery = query.substring(query.lastIndexOf(table) + table.length() + 1); System.out.println("subQuery " + subQuery); - makeQuery("select " + id + " from " + getQC() + table + getQC() + subQuery+"order by "+id, numHits); + makeQuery("select " + getQC()+id+getQC() + " from " + getQC() + table + getQC() + subQuery, numHits); while (true) { Vector vec = getNextRow();