|
|
|
@ -62,7 +62,6 @@ public class OpenGaussWriteShiWu_Jfinal {
|
|
|
|
|
Connection conn = null;
|
|
|
|
|
try {
|
|
|
|
|
conn = DbKit.getConfig().getDataSource().getConnection();
|
|
|
|
|
DbKit.getConfig().setThreadLocalConnection(conn);
|
|
|
|
|
conn.setAutoCommit(false);
|
|
|
|
|
String sql = "INSERT INTO test(id, txt) " + "VALUES (?, ?)";
|
|
|
|
|
PreparedStatement pstmt = conn.prepareStatement(sql);
|
|
|
|
@ -87,7 +86,6 @@ public class OpenGaussWriteShiWu_Jfinal {
|
|
|
|
|
if (null != conn) {
|
|
|
|
|
conn.close();
|
|
|
|
|
}
|
|
|
|
|
DbKit.getConfig().removeThreadLocalConnection();
|
|
|
|
|
}
|
|
|
|
|
long end = System.currentTimeMillis();
|
|
|
|
|
long elapsed = end - start;
|
|
|
|
|