dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #08576
[Bug 676340] [NEW] name-based records: Can't delete an patient
Public bug reported:
Name-based records: Can't delete an patient
Version:
2.0.6-SNAPSHOT
Build revision:
2067
Build date:
2010-11-16 09:34
Description:
Can't delete an patient (in case of needing... with rational reasons, for example. Anyway, this function is supported :) so just make it workable)
Tomcat log: Caused by: java.sql.BatchUpdateException: Batch entry 0 delete from patient wher
e patientid='212' was aborted. Call getNextException to see the cause.
at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handle
Error(AbstractJdbc2Statement.java:2598)
IT SEEMS that just merely/simply focus on deleting records in "patient" table without checking the constraints on other possible related tables,
for example: in the tree of relationship
programstageinstance, programattributevalue, programinstance_attributes<--programinstance<--patient
** Affects: dhis2
Importance: Undecided
Status: New
--
name-based records: Can't delete an patient
https://bugs.launchpad.net/bugs/676340
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
Status in DHIS 2 - District Health Information Software: New
Bug description:
Name-based records: Can't delete an patient
Version:
2.0.6-SNAPSHOT
Build revision:
2067
Build date:
2010-11-16 09:34
Description:
Can't delete an patient (in case of needing... with rational reasons, for example. Anyway, this function is supported :) so just make it workable)
Tomcat log: Caused by: java.sql.BatchUpdateException: Batch entry 0 delete from patient wher
e patientid='212' was aborted. Call getNextException to see the cause.
at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handle
Error(AbstractJdbc2Statement.java:2598)
IT SEEMS that just merely/simply focus on deleting records in "patient" table without checking the constraints on other possible related tables,
for example: in the tree of relationship
programstageinstance, programattributevalue, programinstance_attributes<--programinstance<--patient
Follow ups
References