--- FM2SQL/Attic/DBBean.java 2004/09/20 09:00:58 1.32 +++ FM2SQL/Attic/DBBean.java 2004/09/20 14:07:51 1.34 @@ -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();