Unable to increment data id revision numbers
In an attempt to let the Morpho user update a data file (NOT a metadata doc), it
was discovered that Metacat returns the following when an attempt is made to
insert a revised data document, eg 801.1 --> 801.2
Same code works when a new id is used rather than one with incremented version #.
ORA-00001: unique constraint (TAO.XML_DOCUMENTS_PK) violated
#1 Updated by Jing Tao over 20 years ago
In order to increase revision of data file docid, method registerDocument was
revised. Now it not only insert a new data file record to xml_documents table,
but also can update the data file documents. Moreover, it can archieve the old
version to xml_revisions table. Two other private methods were added to handl
these futures: deleteXMLDocuments and getLatestRevisionNumber.
The new revision number of data file is not require to be exact one greater
than the revsion in xml_documents table. It just require it should be greater
than the revsion in xml_documents table.