--- FM2SQL/Attic/Convert.java 2003/12/10 12:25:12 1.2 +++ FM2SQL/Attic/Convert.java 2004/01/08 10:31:18 1.3 @@ -213,9 +213,22 @@ class Convert //dialog.title.setText("Writing table data ..."); Vector row = null; //for (int j = 0; j < result[0].size(); ++j) + command = new StringBuffer(); + + command.append("INSERT INTO "); + command.append(beanDest.getQC()); + command.append(convertText((String) names.get(tbIndex))); + command.append(beanDest.getQC()); + command.append(" values ( "); + + for (int i = 0; i < bean.getColumnNames().size() - 1; ++i) + command.append("?,"); + command.append("?)"); + PreparedStatement pstm = beanDest.getConnection().prepareStatement(command.toString()); + System.out.println(command); while((row=bean.getNextRow())!=null) { - //Vector row = (Vector) result[0].get(j); +/* //Vector row = (Vector) result[0].get(j); command = new StringBuffer(); command.append("INSERT INTO "); @@ -223,8 +236,10 @@ class Convert command.append(convertText((String) names.get(tbIndex))); command.append(beanDest.getQC()); command.append(" values ( "); - //print rows + */ + //print rows Object obj = null; + /* for(int k=0;k= 0 ) + { + alterMe.delete(index, index + 4); + length = length - 4; + } + while (j < length) { if (alterMe.charAt(j) == ' ') @@ -560,6 +620,16 @@ class Convert alterMe.setCharAt(j, '_'); } + else if (alterMe.charAt(j) == '.') + { + System.out.println("dube "+alterMe); + if(j==length-1) + { + alterMe.delete(j, j); + length--; + continue; + } + } ++j; }