Project

General

Profile

« Previous | Next » 

Revision 148

Added by bojilova almost 24 years ago

to use single transaction

View differences:

DBDTDHandler.java
120 120
                                        String publicId, String systemId)
121 121
   {
122 122
        try {
123
          conn.setAutoCommit(false);
124 123
          PreparedStatement pstmt;
125 124
          pstmt = conn.prepareStatement(
126 125
                "INSERT INTO xml_catalog (entity_id, entity_name, " +
......
133 132
          // Do the insertion
134 133
          pstmt.execute();
135 134
          pstmt.close();
136
          conn.commit();
137
          conn.setAutoCommit(true);
138 135
        } catch (SQLException e) {
139 136
          System.out.println(e.getMessage());
140 137
        }

Also available in: Unified diff