@@ -54,7 +54,7 @@ public static int execute(Connection conn, String sql, Map<String, Object> param
5454 public static int execute (Connection conn , String sql , Object ... params ) throws SQLException {
5555 PreparedStatement ps = null ;
5656 try {
57- ps = StatementUtil .prepareStatement (conn , sql , params );
57+ ps = StatementUtil .prepareStatement (false , conn , sql , params );
5858 return ps .executeUpdate ();
5959 } finally {
6060 DbUtil .close (ps );
@@ -128,7 +128,7 @@ public static Long executeForGeneratedKey(Connection conn, String sql, Object...
128128 PreparedStatement ps = null ;
129129 ResultSet rs = null ;
130130 try {
131- ps = StatementUtil .prepareStatement (conn , sql , params );
131+ ps = StatementUtil .prepareStatement (true , conn , sql , params );
132132 ps .executeUpdate ();
133133 rs = ps .getGeneratedKeys ();
134134 if (rs != null && rs .next ()) {
@@ -271,7 +271,7 @@ public static <T> T query(Connection conn, SqlBuilder sqlBuilder, RsHandler<T> r
271271 public static <T > T query (Connection conn , String sql , RsHandler <T > rsh , Object ... params ) throws SQLException {
272272 PreparedStatement ps = null ;
273273 try {
274- ps = StatementUtil .prepareStatement (conn , sql , params );
274+ ps = StatementUtil .prepareStatement (false , conn , sql , params );
275275 return executeQuery (ps , rsh );
276276 } finally {
277277 DbUtil .close (ps );
0 commit comments