Project

General

Profile

« Previous | Next » 

Revision 9492

Added by Jing Tao over 8 years ago

Make sure to close the prepared statement on the final statement.

View differences:

ContentTypeProvider.java
446 446
    {
447 447
      try
448 448
      {
449
        pStmt.close();
449
        if(rs != null) {
450
            rs.close();
451
        }
452
        if(pStmt != null) {
453
            pStmt.close();
454
        }
455
        
450 456
      }
451 457
      catch (SQLException ee)
452 458
      {
......
536 542
    {
537 543
      try
538 544
      {
539
        pStmt.close();
545
          if(rs != null) {
546
              rs.close();
547
          }
548
          if(pStmt != null) {
549
              pStmt.close();
550
          }
551
        
540 552
      }
541 553
      catch(SQLException ee)
542 554
      {

Also available in: Unified diff