Details

    • Type: Bug Bug
    • Status: Open
    • Resolution: Unresolved
    • Labels:
      None
    • Old Scarab Id:
      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); }

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development