Revision 180
Added by Matt Jones about 24 years ago
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
removed debugging code