Uploaded image for project: 'Torque issues (old)'
  1. Torque issues (old)
  2. TORQUEOLD-344

Delete on a self referenced table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • None
    • TRQS327

    Description

      I'm using Torque 3.2-rc2 with PostgreSQL 8.
      When I try to delete a set of records which are referenced between them it fails because in the BasePeer class the final process to delete records do it one by one, and it casuses a foreign key violation.

      Here is the BasePeer class code which I think may cause this problem, at line 374 ...

      try
      {
      processTables(criteria, tables, con, new ProcessCallback() {
      public void process(String table, String dbName, Record rec)
      throws Exception

      { rec.markToBeDeleted(); rec.save(); }

      });
      }
      catch (Exception e)

      { throwTorqueException(e); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: