--- FM2SQL/Attic/Convert.java 2004/08/09 11:36:18 1.71 +++ FM2SQL/Attic/Convert.java 2004/08/16 09:45:58 1.73 @@ -77,6 +77,7 @@ class Convert static Vector databases = new Vector(); final static int numHits = 5000; final static int numIntervalls = 2; + static boolean debug = false; public static void main(String args[]) { /* try @@ -101,10 +102,12 @@ class Convert { e1.printStackTrace(); } - PrintStream stream = new PrintStream(file); - // System.setOut(stream); - //System.setErr(stream); - + PrintStream stream = new PrintStream(file,false); + if(!debug) + { + System.setOut(stream); + System.setErr(stream); + } readXMLFile(args[0]); if (!(new File(args[0]).exists())) System.exit(0); @@ -2274,11 +2277,11 @@ class Convert updPst.setNull(l + 1, Types.NULL); } updPst.setString(line.size() + 1, line.get(idIndex).toString()); + //updPst.addBatch(); updPst.execute(); - } } - + //updPst.executeBatch(); } // to method /**