Project

General

Profile

« Previous | Next » 

Revision 6104

do not look in systemMetadata for a docid->guid mapping

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
696 696
            } 
697 697
            else
698 698
            {
699
                query = "select guid from systemmetadata where docid = ? and rev = ?";
700
                stmt = dbConn.prepareStatement(query);
701
                stmt.setString(1, docid);
702
                stmt.setInt(2, rev);
703
                rs = stmt.executeQuery();
704
                if(rs.next())
705
                {
706
                    guid = rs.getString(1);
707
                }
708
                else
709
                {
710
                    throw new McdbDocNotFoundException("No guid registered for docid " + docid + "." + rev);
711
                }
699
            	throw new McdbDocNotFoundException("No guid registered for docid " + docid + "." + rev);
712 700
            }
713 701
            
714 702
        } catch (SQLException e) {

Also available in: Unified diff