Project

General

Profile

« Previous | Next » 

Revision 180

Added by Matt Jones over 24 years ago

removed debugging code

View differences:

src/edu/ucsb/nceas/metacat/QuerySpecification.java
73 73
    try {
74 74
      parser.parse(new InputSource(queryspec));
75 75
    } catch (SAXException e) {
76
      System.out.println("error parsing data");
77
      System.out.println(e.getMessage());
76
      System.err.println("error parsing data");
77
      System.err.println(e.getMessage());
78 78
    }
79 79
  }
80 80

  
src/edu/ucsb/nceas/metacat/DBQuery.java
141 141
        // Get the XML query and covert it into a SQL statment
142 142
        QuerySpecification qspec = new QuerySpecification(xmlquery, 
143 143
                                   parserName);
144
        System.out.println(qspec.printSQL());
144
        //System.out.println(qspec.printSQL());
145 145
        pstmt = conn.prepareStatement( qspec.printSQL() );
146 146

  
147 147
        // Execute the SQL query using the JDBC connection
......
174 174
        }
175 175
        pstmt.close();
176 176
      } catch (SQLException e) {
177
        System.out.println("Error getting id: " + e.getMessage());
177
        System.err.println("Error getting id: " + e.getMessage());
178 178
      } catch (IOException ioe) {
179 179
        System.err.println("Error printing qspec:");
180 180
        System.err.println(ioe.getMessage());

Also available in: Unified diff