|
|
| version 1.32, 2004/09/20 09:00:58 | version 1.33, 2004/09/20 11:57:41 |
|---|---|
| Line 739 public class DBBean | Line 739 public class DBBean |
| stm.execute(query); | stm.execute(query); |
| long time2 = System.currentTimeMillis(); | long time2 = System.currentTimeMillis(); |
| System.out.println("time to execute " + (time2 - time)); | // System.out.println("time to execute " + (time2 - time)); |
| // stm.setMaxRows(numberOfHits); | // stm.setMaxRows(numberOfHits); |
| result = stm.getResultSet(); | result = stm.getResultSet(); |
| Line 750 public class DBBean | Line 750 public class DBBean |
| // TODO remove | // TODO remove |
| if (FM2SQL.fmInstance != null) | if (FM2SQL.fmInstance != null) |
| FM2SQL.showErrorDialog("Error caught!! \n Query was " + query + " \n", "Debug Info"); | FM2SQL.showErrorDialog("Error caught!! \n Query was " + query + " \n", "Debug Info"); |
| e.printStackTrace(); | |
| } | } |
| return result; | return result; |
| Line 1529 public class DBBean | Line 1530 public class DBBean |
| ResultSet result = this.result; | ResultSet result = this.result; |
| String subQuery = query.substring(query.lastIndexOf(table) + table.length() + 1); | String subQuery = query.substring(query.lastIndexOf(table) + table.length() + 1); |
| System.out.println("subQuery " + subQuery); | 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) | while (true) |
| { | { |
| Vector vec = getNextRow(); | Vector vec = getNextRow(); |