List:Commits« Previous MessageNext Message »
From:Martin Zaun Date:October 3 2010 4:49am
Subject:bzr commit into mysql-5.1-telco-7.1 branch (martin.zaun:3858)
View as plain text  
#At file:///Users/mz/mysql/ndb-7.1-opt64/ based on revid:martin.zaun@stripped

 3858 Martin Zaun	2010-10-02
      crund - cosmetics

    modified:
      storage/ndb/test/crund/tws_benchmark/src/Main.java
=== modified file 'storage/ndb/test/crund/tws_benchmark/src/Main.java'
--- a/storage/ndb/test/crund/tws_benchmark/src/Main.java	2010-10-03 04:32:37 +0000
+++ b/storage/ndb/test/crund/tws_benchmark/src/Main.java	2010-10-03 04:49:10 +0000
@@ -370,12 +370,7 @@ public class Main
         assert (upd0 == null);
         assert (del0 == null);
 
-        out.print("compiling jdbc statements ...");
-        out.flush();
-
-        final String sqlIns0 = "INSERT INTO mytable (c0, c1, c2, c3, c5, c6, c7, c8) VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
-        ins0 = connection.prepareStatement(sqlIns0);
-
+        out.print("using lock mode for reads ...    [ok: ");
         final String lm;
         switch (lockMode) {
         case READ_COMMITTED:
@@ -391,6 +386,13 @@ public class Main
             lm = "";
             assert false;
         }
+        out.println("SELECT ..." + lm + ";]");
+
+        out.print("compiling jdbc statements ...");
+        out.flush();
+
+        final String sqlIns0 = "INSERT INTO mytable (c0, c1, c2, c3, c5, c6, c7, c8) VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
+        ins0 = connection.prepareStatement(sqlIns0);
 
         final String sqlSel0 = ("SELECT * FROM mytable where c0=?" + lm);
         sel0 = connection.prepareStatement(sqlSel0);


Attachment: [text/bzr-bundle] bzr/martin.zaun@oracle.com-20101003044910-ymb0x3yhr5lysid3.bundle
Thread
bzr commit into mysql-5.1-telco-7.1 branch (martin.zaun:3858) Martin Zaun3 Oct