Diff for /FM2SQL/Attic/DBBean.java between versions 1.16 and 1.17

version 1.16, 2004/04/15 11:23:48 version 1.17, 2004/04/30 10:56:06
Line 682  public class DBBean Line 682  public class DBBean
     }      }
     stm.setMaxRows(numberOfHits);      stm.setMaxRows(numberOfHits);
     long time = System.currentTimeMillis();      long time = System.currentTimeMillis();
       try {
     stm.execute(query);      stm.execute(query);
       } catch(Exception e) {
        // TODO remove
        if(FM2SQL.fmInstance!=null)
        FM2SQL.showErrorDialog("Error caught!! \n Query was  "+query+" \n","Debug Info");
       }
     long time2 = System.currentTimeMillis();      long time2 = System.currentTimeMillis();
         
     System.out.println("time to execute "+(time2-time));      System.out.println("time to execute "+(time2-time));
Line 1336  public class DBBean Line 1342  public class DBBean
             tableRow.addElement((b != null) ? new String(utf8.getBytes()) : null);              tableRow.addElement((b != null) ? new String(utf8.getBytes()) : null);
           else            else
           {            {
               if(url.toLowerCase().indexOf("odbc")>=0)
              {
                  byte[] val = resultSet.getBytes(i);
                tableRow.addElement((val==null) ? null:new String(val,"UTF-8"));
         
              } else
             //  byte[] val = resultSet.getBytes(i);              //  byte[] val = resultSet.getBytes(i);
             tableRow.add(resultSet.getString(i));              tableRow.add(resultSet.getString(i));
             //tableRow.addElement((val==null) ? null:new String(val,"UTF-8"));              //tableRow.addElement((val==null) ? null:new String(val,"UTF-8"));

Removed from v.1.16  
changed lines
  Added in v.1.17


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>