Revision 6595
Added by ben leinfelder over 12 years ago
DocumentIdentifier.java | ||
---|---|---|
154 | 154 |
dbConn=DBConnectionPool. |
155 | 155 |
getDBConnection("DocumentIdentifier.getNewestRev"); |
156 | 156 |
serialNumber=dbConn.getCheckOutSerialNumber(); |
157 |
pstmt = dbConn.prepareStatement("select rev from xml_documents where " +
|
|
158 |
"docid like '" + docid + "'");
|
|
157 |
pstmt = dbConn.prepareStatement("select rev from xml_documents where docid like ? ");
|
|
158 |
pstmt.setString(1, docid);
|
|
159 | 159 |
pstmt.execute(); |
160 | 160 |
ResultSet rs = pstmt.getResultSet(); |
161 | 161 |
boolean tablehasrows = rs.next(); |
Also available in: Unified diff
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527