Project

General

Profile

« Previous | Next » 

Revision 1001

Added by berkley over 22 years ago

hopefully fixed the connection closed error.

View differences:

src/edu/ucsb/nceas/metacat/DBSAXNode.java
89 89
                                 String data, String docid) 
90 90
                                 throws SAXException {
91 91
    try {
92
      if(conn == null)
93
      {
94
        try
95
        {
96
          MetaCatUtil util = new MetaCatUtil();
97
          conn = util.getConnection();
98
        }
99
        catch(Exception e)
100
        {
101
          MetaCatUtil.debug("Error while getting db connection in " +
102
                            "DBSAXNode: " + e.getMessage());
103
        }
104
      }
105
        
92 106
      PreparedStatement pstmt;
93 107
      if (nodetype == "DOCUMENT") {
94 108
        pstmt = conn.prepareStatement(

Also available in: Unified diff