Project

General

Profile

« Previous | Next » 

Revision 1614

Added by Jing Tao over 21 years ago

Fixed bug to find catalog id for eml2 document.

View differences:

src/edu/ucsb/nceas/metacat/EmlSAXHandler.java
378 378
            Statement stmt = dbConn.createStatement();
379 379
            ResultSet rs = stmt.executeQuery(
380 380
                          "SELECT catalog_id FROM xml_catalog " +
381
                          "WHERE entry_type = 'DTD' " +
381
                          "WHERE entry_type = 'Schema' " +
382 382
                          "AND public_id = '" + doctype + "'");
383 383
            boolean hasRow = rs.next();
384 384
            if ( hasRow ) {
......
403 403
       } 
404 404
       catch (Exception ane) 
405 405
       {
406
         throw (new SAXException("Error in DBSaxHandler.startElement " +
406
         throw (new SAXException("Error in EMLSaxHandler.startElement " +
407 407
                                 action, ane));
408 408
       }
409 409
     }

Also available in: Unified diff