Project

General

Profile

Actions

Bug #441

closed

Unable to increment data id revision numbers

Added by Dan Higgins almost 23 years ago. Updated over 22 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
metacat
Target version:
Start date:
03/05/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
441

Description

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 #.

<error>
ORA-00001: unique constraint (TAO.XML_DOCUMENTS_PK) violated

Actions #1

Updated by Jing Tao almost 23 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.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 441

Actions

Also available in: Atom PDF